getTransactionCount RPC Method

Returns the current Transaction count from the ledger

Request
$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getTransactionCount"
> }
> '

params

objectoptional

Configuration object containing the following fields:

result

Response
{
"jsonrpc": "2.0",
"result": 268,
"id": 1
}
u64

The current Transaction count from the ledger

Is this page helpful?