Example code for the /v1/accounts/{account_hash}/transactions json-rpc method. Сomplete guide on how to use /v1/accounts/{account_hash}/transactions json-rpc in GetBlock.io Web3 documentation.
This endpoint gets the on-chain committed transactions associated with a specific account. This includes submitted, executed, or pending transactions where the account is the sender.
Supported Network
Mainnet
Parameters
Parameter
Data type
Description
Required
In
account_hash
string
Aptos account address
Yes
Path
start
string
The starting point or offset for retrieving resources. If not provided, defaults to showing the latest transactions
No
query
limit
integer
The maximum number of resources to retrieve per request. If not provided, defaults to default page size
No
query
Request
Base URL
https://go.getblock.io/<ACCESS_TOKEN>
Example(cURl)
curl -X GET "https://go.getblock.io/<ACCESS_TOKEN>/v1/accounts/0xbf9239be9eb7e7a3d8e4c1f36083464fd47e6bd1f82a43b7c0f7ee958705a52f
/transactions?limit=5"
Response
Response Parameter Definition
Field
Type
Description
version
String
The transaction version (ledger sequence number).
hash
String
Unique hash of the transaction.
state_change_hash
String
Hash of all state changes caused by this transaction.
event_root_hash
String
Merkle root of events emitted in this transaction.
gas_used
String
Amount of gas consumed by the transaction.
success
Boolean
Whether the transaction executed successfully.
vm_status
String
Execution status from the Aptos VM.
accumulator_root_hash
String
Root hash of the transaction accumulator after applying this txn.
changes
Array
List of state changes caused by the transaction.
changes.address
String
Address whose resource was modified.
changes.state_key_hash
String
State key hash for the modified resource.
changes.type
String
Type of state change (e.g., write_resource).
changes.data
Object
Modified resource data.
changes.data.type
String
Type of resource (e.g., CoinStore<AptosCoin>).
changes.data.data
Object
Full contents of the updated resource (balance, events, frozen state, etc).