Learn how to use the enhancedGetTransactionsByAddress JSON-RPC method.
curl --request POST \
--url 'https://rpc.particle.network/solana/#enhancedGetTransactionsByAddress' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"chainId": 101,
"method": "enhancedGetTransactionsByAddress",
"params": [
{
"accountAddress": "6XU36wCxWobLx5Rtsb58kmgAJKVYmMVqy4SHXxENAyAe"
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"chainId": 101,
"result": [
{
"type": "unknown",
"lamportsChange": 123,
"lamportsFee": 123,
"signature": "<string>",
"blockTime": 123,
"status": "success",
"data": {
"name": "<string>",
"symbol": "<string>",
"image": "<string>",
"mint": "<string>",
"decimals": 123,
"amountTransfered": 123,
"sender": "<string>",
"receiver": "<string>",
"senderAssociatedTokenAddress": "<string>",
"receiverAssociatedTokenAddress": "<string>"
}
}
]
}enhancedGetTransactionsByAddressenhancedGetTransactionsByAddress retrieves detailed parsed transaction history relating to a specific public address on Solana. It takes:
address - a base58-encoded string.limit - integer (between 1 and 1000, default 1000).before - string, transaction hash.after - string, transaction hash.until - string, transaction hash.const axios = require('axios');
(async () => {
const response = await axios.post('https://rpc.particle.network/solana', {
chainId: 103,
jsonrpc: '2.0',
id: 0,
method: 'enhancedGetTransactionsByAddress',
params: ['6XU36wCxWobLx5Rtsb58kmgAJKVYmMVqy4SHXxENAyAe'],
}, {
auth: {
username: 'Your Project Id',
password: 'Your Project Server Key',
}
});
console.log(response.data);
})();
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request to get transactions for an account address.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
The blockchain chain ID.
101
API method being called.
enhancedGetTransactionsByAddress Parameters for getting transactions by address.
Account address details.
Show child attributes
Successful response with transactions information.
Was this page helpful?
curl --request POST \
--url 'https://rpc.particle.network/solana/#enhancedGetTransactionsByAddress' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"chainId": 101,
"method": "enhancedGetTransactionsByAddress",
"params": [
{
"accountAddress": "6XU36wCxWobLx5Rtsb58kmgAJKVYmMVqy4SHXxENAyAe"
}
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"chainId": 101,
"result": [
{
"type": "unknown",
"lamportsChange": 123,
"lamportsFee": 123,
"signature": "<string>",
"blockTime": 123,
"status": "success",
"data": {
"name": "<string>",
"symbol": "<string>",
"image": "<string>",
"mint": "<string>",
"decimals": 123,
"amountTransfered": 123,
"sender": "<string>",
"receiver": "<string>",
"senderAssociatedTokenAddress": "<string>",
"receiverAssociatedTokenAddress": "<string>"
}
}
]
}