Expand description
Transaction
This module defines jets to introspect the contents of an Elements transaction.
Functionsยง
- current_
amount - Return the
input_amountat thecurrent_index. - current_
annex_ hash - Return the
input_annex_hashat thcurrent_index. - current_
asset - Return the
input_assetat thecurrent_index. - current_
index - Return the index of the current txin.
- current_
issuance_ asset_ amount - Return the
issuance_asset_amountat thecurrent_index. - current_
issuance_ asset_ proof - Return the
issuance_asset_proofat thecurrent_index. - current_
issuance_ token_ amount - Return the
issuance_token_amountat thecurrent_index. - current_
issuance_ token_ proof - Return the
issuance_token_proofat thecurrent_index. - current_
new_ issuance_ contract - Return the
new_issuance_contractat thecurrent_index. - current_
pegin - Return the
input_peginat thecurrent_index. - current_
prev_ outpoint - Return the previous outpoint of the current txin.
- current_
reissuance_ blinding - Return the
reissuance_blindingat thecurrent_index. - current_
reissuance_ entropy - Return the
reissuance_entropyat thecurrent_index. - current_
script_ hash - Return the SHA256 hash of the scriptPubKey of the UTXO of the current txin.
- current_
script_ sig_ hash - Return the SHA256 hash of the scriptSig of the current txin.
- current_
sequence - Return the nSequence of the current txin.
- genesis_
block_ hash - Return the SHA256 hash of the genesis block.
- input_
amount - Return the asset id and the asset amount at the given input index.
- input_
annex_ hash - Return the SHA256 hash of the annex at the given input:
- input_
asset - Return the asset id of the input at the given index.
- input_
pegin - Return the parent genesis block hash if the input at the given index is a peg-in.
- input_
prev_ outpoint - Return the previous outpoint of the input at the given index.
- input_
script_ hash - Return the SHA256 hash of the scriptPubKey of the UTXO of the input at the given index.
- input_
script_ sig_ hash - Return the SHA256 hash of the scriptSigKey of the input at the given index.
- input_
sequence - Return the nSequence of the input at the given index.
- internal_
key - Return the internal key of the current input.
- issuance_
asset_ amount - Return the possibly confidential amount of the issuance if the input at the given index has an issuance.
- issuance_
asset_ proof - Return the SHA256 hash of the range proof for the amount of the issuance at the given input index.
- issuance_
token_ amount - Return the possibly confidential amount of the reissuance tokens if the input at the given index has an issuance.
- issuance_
token_ proof - Return the SHA256 hash of the range proof for the amount of the reissuance tokens at the given input index.
- lock_
time - Return the lock time of the transaction.
- new_
issuance_ contract - Return the contract hash for the new issuance at the given input index.
- num_
inputs - Return the number of inputs of the transaction.
- num_
outputs - Return the number of outputs of the transaction.
- output_
amount - Return the asset amount of the output at the given index.
- output_
asset - Return the asset id of the output at the given index.
- output_
is_ fee - Check if the output at the given index is a fee output.
- output_
nonce - Return the nonce of the output at the given index.
- output_
null_ datum - Return the
b-th entry of a null data (OP_RETURN) output at indexa. - output_
range_ proof - Return the SHA256 hash of the range proof of the output at the given index.
- output_
script_ hash - Return the SHA256 hash of the scriptPubKey of the output at the given index.
- output_
surjection_ proof - Return the SHA256 hash of the surjection proof of the output at the given index.
- reissuance_
blinding - Return the blinding factor used for the reissuance at the given input index.
- reissuance_
entropy - Return the entropy used for the reissuance at the given input index.
- script_
cmr - Return the CMR of the Simplicity program in the current input.
- tapleaf_
version - Return the tap leaf version of the current input.
- tappath
- Return the SHA256 hash of the tap path of the current input.
- total_
fee - Return the total amount of fees paid to the given asset id.
- transaction_
id - Return the transaction ID.
- version
- Return the version number of the transaction.