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
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": []
}'const axios = require('axios');
const url = 'https://go.getblock.io/<ACCESS-TOKEN>/';
const payload = {
jsonrpc: '2.0',
id: 'getblock.io',
method: 'sui_getTotalTransactionBlocks',
params: []
};
axios.post(url, payload, {
headers: { 'Content-Type': 'application/json' }
})
.then(response => console.log(response.data))
.catch(error => console.error(error));Response Example
Response Parameters
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
-32603
Internal error - node processing issues
-32000
Server error - RPC endpoint unavailable
SDK Integration
Last updated
Was this helpful?