For the complete documentation index, see llms.txt. This page is also available as Markdown.

sui_getLatestCheckpointSequenceNumber{deprecated} - Sui

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

This method returns the sequence number of the latest checkpoint that has been executed on the SUI network. This provides a quick way to determine the current height of the blockchain without fetching full checkpoint data. It's useful for monitoring network progress and synchronization status.

Parameters

  • None

Returns

Field
Type
Description

result

string

The latest checkpoint sequence number

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_getLatestCheckpointSequenceNumber",
  "params": []
}'
const axios = require('axios');

const url = 'https://go.getblock.io/<ACCESS-TOKEN>/';

const payload = {
  jsonrpc: '2.0',
  id: 'getblock.io',
  method: 'sui_getLatestCheckpointSequenceNumber',
  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

Parameter
Type
Description

result

string

Latest checkpoint sequence number as a string

Use Cases

  • Monitor blockchain height and progress

  • Check node synchronization status

  • Implement polling for new checkpoints

  • Calculate finality depth for transactions

  • Display network status in dashboards

Error Handling

Error Code
Description

-32603

Internal error - node processing issues

-32000

Server error - RPC endpoint unavailable

SDK Integration

Last updated

Was this helpful?