sui_getTotalTransactionBlocks - Sui

Example code for the sui_getTotalTransactionBlocks JSON-RPC method. Complete guide on how to use sui_getTotalTransactionBlocks JSON-RPC in GetBlock Web3 documentation.

This method returns the total number of transactions known to the server on the SUI network. This cumulative count includes all transactions processed since genesis and provides a key metric for network activity and throughput analysis.

Parameters

  • None

Returns

Field
Type
Description

result

string

Total number of transaction blocks

Request Example

curl -X POST https://go.getblock.io/<ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": "getblock.io",
  "method": "sui_getTotalTransactionBlocks",
  "params": []
}'

Response Example

Response Parameters

Parameter
Type
Description

result

string

Total transaction count as a string

Use Cases

  • Display network statistics in dashboards

  • Calculate transaction throughput over time

  • Monitor network growth and adoption

  • Compare activity across epochs

  • Build analytics and reporting tools

Error Handling

Error Code
Description

-32603

Internal error - node processing issues

-32000

Server error - RPC endpoint unavailable

SDK Integration

Last updated

Was this helpful?