RPC MethodsHTTPgetTransactionCount

Transaction

getTransactionCount

Returns the current Transaction count from the ledger.

Parameters

configobject optional

Configuration object.

commitmentstring

Commitment level.

minContextSlotnumber

The minimum slot.

Result

u64

The current transaction count from the ledger.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTransactionCount",
  "params": [{ "commitment": "finalized" }]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": 268,
"id": 1
}