PricingGitHubDashboard

Aptos

/v1/transactions/by_hash/{txn_hash}8 credits

Get transaction by hash

Network: apt

Parameters

NameTypeDescription
txn_hashstringPath. Transaction hash (hex string).

Returns

Type

object

Transaction with a type discriminator. A committed one has version, hash, success, vm_status, gas_used, events, timestamp; a pending one (type pending_transaction) has hash, sender, sequence_number and payload only.

Code examples

curl 'https://holy-burned-sky-apt-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/v1/transactions/by_hash/{txn_hash}'