Module: OpenAssets::MarkerOutput

Included in:
Bitcoin::TxOut
Defined in:
lib/openassets/marker_output.rb

Instance Method Summary collapse

Instance Method Details

#oa_payloadOpenAssets::Payload

get open asset payload.

Returns:



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.

Returns:

  • (Boolean)


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