Aptos
/v1/transactions/by_hash/{txn_hash}30 额度
Get transaction by hash
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| txn_hash | string | Path. Transaction hash (hex string). |
返回值
类型
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.
代码示例
curl 'https://holy-burned-sky-apt-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/v1/transactions/by_hash/{txn_hash}'