Skip to main content

/v1/transactions/by_version/:txn_version:

Retrieves a transaction by a given version. If the version has been pruned, a 410 will be returned.

Parameters

  • txn_version REQUIRED: (string) - Hash of transaction to retrieve

Example

Request

curl --request GET \
--url https://aptos-mainnet.blastapi.io/<project-id>/v1/transactions/by_version/14632549 \
--header 'Content-Type: application/json'

Result

{
"version": "14632549",
"hash": "0x7295e969a202a5f4e9a3fff708d2c6110936a8e09d5174017b5941976fa45d56",
"state_change_hash": "0xafb6e14fe47d850fd0a7395bcfb997ffacf4715e0f895cc162c218e4a7564bc6",
"event_root_hash": "0x414343554d554c41544f525f504c414345484f4c4445525f4841534800000000",
"state_checkpoint_hash": "0x0dec4b1197e60a42e3c936581b7e1140623c5ee85aff067b4f25941691d8fc29",
"gas_used": "0",
"success": true,
"vm_status": "Executed successfully",
"accumulator_root_hash": "0xb8d0ee88398e517a2fc9b814978a2bbf136ea95335b846c70388fa36208111ed",
"changes": [],
"timestamp": "1666868948644188",
"type": "state_checkpoint_transaction"
}