Skip to content

sui_getTotalTransactionBlocks ​

Read API

Return the total number of transaction blocks known to the server.

Parameters ​

None.

Result ​

Example ​

Request ​

bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getTotalTransactionBlocks",
  "params": []
}'

Response ​

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "2451485"
}

The full-stack Sui data layer.