Module transaction

Source
Expand description

Transaction

This module defines jets to introspect the contents of an Elements transaction.

Functionsยง

current_amount
Return the input_amount at the current_index.
current_annex_hash
Return the input_annex_hash at th current_index.
current_asset
Return the input_asset at the current_index.
current_index
Return the index of the current txin.
current_issuance_asset_amount
Return the issuance_asset_amount at the current_index.
current_issuance_asset_proof
Return the issuance_asset_proof at the current_index.
current_issuance_token_amount
Return the issuance_token_amount at the current_index.
current_issuance_token_proof
Return the issuance_token_proof at the current_index.
current_new_issuance_contract
Return the new_issuance_contract at the current_index.
current_pegin
Return the input_pegin at the current_index.
current_prev_outpoint
Return the previous outpoint of the current txin.
current_reissuance_blinding
Return the reissuance_blinding at the current_index.
current_reissuance_entropy
Return the reissuance_entropy at the current_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 index a.
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.