curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getTransactionCount",
"params": [
{
"commitment": "finalized"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": 268
}curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getTransactionCount",
"params": [
{
"commitment": "finalized"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": 268
}The JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getTransactionCount "getTransactionCount"
Optional configuration object.
Show child attributes
The finality level at which to measure the transaction count (processed = recent, finalized = confirmed).
confirmed, finalized, processed "finalized"
The minimum slot that the request can be evaluated at.
1000
Successfully retrieved the transaction count.
Was this page helpful?