Module: OpenAssets::MarkerOutput
- Included in:
- Bitcoin::TxOut
- Defined in:
- lib/openassets/marker_output.rb
Instance Method Summary collapse
-
#oa_payload ⇒ OpenAssets::Payload
get open asset payload.
-
#open_assets_marker? ⇒ Boolean
whether this output is marker output for open assets.
Instance Method Details
#oa_payload ⇒ OpenAssets::Payload
get open asset payload.
13 14 15 16 |
# File 'lib/openassets/marker_output.rb', line 13 def oa_payload return nil unless script_pubkey.op_return? Payload.parse_from_payload(script_pubkey.op_return_data) end |
#open_assets_marker? ⇒ Boolean
whether this output is marker output for open assets.
6 7 8 9 |
# File 'lib/openassets/marker_output.rb', line 6 def open_assets_marker? return false unless script_pubkey.op_return? !oa_payload.nil? end |