AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

avm.getTx RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. txID - String - A specific transaction ID.
  2. encoding - String - The encoding parameter sets the format of the returned transaction. Can be, "cb58", "hex" or "json". Defaults to "cb58".

Returns:

  1. tx - Object - The transaction object of the requested txID.
  2. encoding - string - The encoding format.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/X'))
params = {
    "txID":"9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",
    "encoding": "hex"
}
request = w3.provider.make_request('avm.getTx', [params])
print(request)
Ready to get started? Create a free account