avm.getTx
Returns the specified transaction. The encoding parameter sets the format of the returned transaction. Can be either "hex" or "json". Defaults to "hex".
A transaction is said to change an address's balance if either is true:
A UTXO that the transaction consumes was at least partially owned by the address.
A UTXO that the transaction produces is at least partially owned by the address.
Parameters:
txID - string - A specific transaction ID.
encoding - string - The encoding parameter sets the format of the returned transaction. Can be, "cb58", "hex" or "json". Defaults to "cb58".
Returned Value:
tx - object - The transaction object of the requested txID.
encoding - string - The encoding format.
Example Response:
Last updated