⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getTransactionCount

dropdown

# getTransactionCount example for Solana (SOL)

POST getTransactionCount

Returns the current Transaction count from the ledger

Parameters

commitment - object

Optional

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getTransactionCount",
"params": [null],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": 60547116336
}