sui_getCheckpoints

Read API: Return paginated list of checkpoints

Parameters

  • cursor : <BigInt_for_uint64> - An optional paging cursor. If provided, the query will start from the next item after the specified cursor. Default to start from the first item if not specified.

  • limit : <uint> - Maximum item returned per page, default to [QUERY_MAX_RESULT_LIMIT_CHECKPOINTS] if not specified.

  • descending_order : <boolean> - query result ordering, default to false (ascending order), oldest record first.

.

Returns

  • CheckpointPage : <Page_for_Checkpoint_and_BigInt_for_uint64>

Example Request and Result for sui_getCheckpoints

Request

curl 
--location --request POST 'https://sui-testnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getCheckpoints",
  "params": [
    "10",1,true
  ]
}'

Result

{
    "jsonrpc": "2.0",
    "result": {
        "data": [{
            "epoch": "0",
            "sequenceNumber": "9",
            "digest": "AeDjjQgndFqqoRqgJ6AhErnYgqLmBNPZuiGFL4wrzZND",
            "networkTotalTransactions": "10",
            "previousDigest": "GSGJSBcYvMNP6Xns7tZFNGdoRZVafCtrkT9N5KUvihwu",
            "epochRollingGasCostSummary": {
                "computationCost": "0",
                "storageCost": "0",
                "storageRebate": "0",
                "nonRefundableStorageFee": "0"
            },
            "timestampMs": "1680011375177",
            "transactions": ["ED5Kuwfp395GWf2PQDG6hGNmrMQgWPGPGuzWidibKwVD"],
            "checkpointCommitments": [],
            "validatorSignature": "iVaZfiCDES7Gi4ia8E/a0yVM3DC7TIWcJ6uq94gote6uneyYRDPTQ7ggwyXYeRH4"
        }],
        "nextCursor": "9",
        "hasNextPage": true
    },
    "id": 1
}

Last updated