Skip to main content
Version: 2.0

Get account transactions

GEThttps://mainnet-aptos-api.moralis.io/accounts/:address/transactions

Get all transactions for a given address.

PATH PARAMS
addressstringrequired
Address of account with or without a 0x prefix
QUERY PARAMS
limitnumber

Max number of transactions to retrieve. If not provided, defaults to default page size

startstring

Account sequence number to start list of transactions. If not provided, defaults to showing the latest transactions

Responses
200 array
Option 1
hashstringrequired
senderstringrequired
A hex encoded 32 byte Aptos account address.
sequence_numberstringrequired
A string containing a 64-bit unsigned integer.
max_gas_amountstringrequired
A string containing a 64-bit unsigned integer.
gas_unit_pricestringrequired
A string containing a 64-bit unsigned integer.
expiration_timestamp_secsstringrequired
A string containing a 64-bit unsigned integer returned in milliseconds.
payloadoneOfrequired
Option 1
typestringrequired
functionstringrequired
Entry function id is string representation of a entry function defined on-chain.
type_argumentsarrayrequired
Type arguments of the function
string
argumentsarrayrequired
Arguments of the function
string
signatureoneOfrequired
Option 1
typestringrequired
signaturestringrequired
All bytes (Vec) data is represented as hex-encoded string prefixed with 0x and fulfilled with two hex digits per byte
public_keystringrequired
All bytes (Vec) data is represented as hex-encoded string prefixed with 0x and fulfilled with two hex digits per byte.
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.AptosApi.transactions.getAccountTransactions({
"limit": 5
});

console.log(response);
} catch (e) {
console.error(e);
}
Response Example
[
{
"hash": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"sender": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"sequence_number": "32425224034",
"max_gas_amount": "32425224034",
"gas_unit_price": "32425224034",
"expiration_timestamp_secs": "32425224034"
},
{
"type": "",
"version": "32425224034",
"hash": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": "",
"gas_used": "32425224034",
"success": true,
"vm_status": "",
"accumulator_root_hash": "",
"changes": [
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"state_key_hash": "",
"data": {
"key": "",
"key_type": ""
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"abi": {
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"name": "",
"exposed_functions": [
{
"name": "",
"visibility": "private",
"is_entry": true
}
],
"structs": [
{
"name": "",
"is_native": true,
"fields": [
{
"name": "sender",
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
]
}
]
}
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
},
{
"type": "delete_module",
"state_key_hash": "",
"handle": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"value": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"data": {
"key": "",
"key_type": "",
"value": "",
"value_type": ""
}
}
],
"sender": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"sequence_number": "32425224034",
"max_gas_amount": "32425224034",
"gas_unit_price": "32425224034",
"expiration_timestamp_secs": "32425224034",
"events": [
{
"guid": {
"creation_number": "32425224034",
"account_address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1"
},
"sequence_number": "32425224034",
"type": "0x1::account::Account"
}
],
"timestamp": "32425224034"
},
{
"type": "genesis_transaction",
"version": "32425224034",
"hash": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": "",
"gas_used": "32425224034",
"success": true,
"vm_status": "",
"accumulator_root_hash": "",
"changes": [
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"state_key_hash": "",
"data": {
"key": "",
"key_type": ""
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"abi": {
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"name": "",
"exposed_functions": [
{
"name": "",
"visibility": "private",
"is_entry": true
}
],
"structs": [
{
"name": "",
"is_native": true,
"fields": [
{
"name": "sender",
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
]
}
]
}
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
},
{
"type": "delete_module",
"state_key_hash": "",
"handle": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"value": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"data": {
"key": "",
"key_type": "",
"value": "",
"value_type": ""
}
}
],
"events": [
{
"guid": {
"creation_number": "32425224034",
"account_address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1"
},
"sequence_number": "32425224034",
"type": "0x1::account::Account"
}
]
},
{
"type": "block_metadata_transaction",
"version": "32425224034",
"hash": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": "",
"gas_used": "32425224034",
"success": true,
"vm_status": "",
"accumulator_root_hash": "",
"changes": [
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"state_key_hash": "",
"data": {
"key": "",
"key_type": ""
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"abi": {
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"name": "",
"exposed_functions": [
{
"name": "",
"visibility": "private",
"is_entry": true
}
],
"structs": [
{
"name": "",
"is_native": true,
"fields": [
{
"name": "sender",
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
]
}
]
}
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
},
{
"type": "delete_module",
"state_key_hash": "",
"handle": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"value": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"data": {
"key": "",
"key_type": "",
"value": "",
"value_type": ""
}
}
],
"id": "",
"epoch": "32425224034",
"round": "32425224034",
"events": [
{
"guid": {
"creation_number": "32425224034",
"account_address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1"
},
"sequence_number": "32425224034",
"type": "0x1::account::Account"
}
],
"proposer": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"timestamp": "32425224034"
},
{
"type": "state_checkpoint_transaction",
"version": "32425224034",
"hash": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_change_hash": "",
"event_root_hash": "",
"state_checkpoint_hash": "",
"gas_used": "32425224034",
"success": true,
"vm_status": "",
"accumulator_root_hash": "",
"changes": [
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": ""
},
{
"type": "delete_module",
"state_key_hash": "",
"data": {
"key": "",
"key_type": ""
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"abi": {
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"name": "",
"exposed_functions": [
{
"name": "",
"visibility": "private",
"is_entry": true
}
],
"structs": [
{
"name": "",
"is_native": true,
"fields": [
{
"name": "sender",
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
]
}
]
}
}
},
{
"type": "delete_module",
"address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"state_key_hash": "",
"data": {
"type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>"
}
},
{
"type": "delete_module",
"state_key_hash": "",
"handle": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"value": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"data": {
"key": "",
"key_type": "",
"value": "",
"value_type": ""
}
}
],
"timestamp": "32425224034"
}
]