sui_getCheckpoint

Read API

Return a checkpoint

Parameters

KeyRequiredTypeDetail
idStringCheckpoint identifier, can use either checkpoint digest, or checkpoint sequence number as input.
"params": [
  "1000"
]

Result

Checkpoint : <Checkpoint>

  • checkpointCommitments : <[CheckpointCommitment]> - Commitments to checkpoint state
  • digest : <[CheckpointDigest]> - Checkpoint digest
  • endOfEpochData : <[EndOfEpochData]> - Present only on the final checkpoint of the epoch.
  • epoch : <[BigInt_for_uint64]> - Checkpoint's epoch ID
  • epochRollingGasCostSummary : <[GasCostSummary]> - The running total gas costs of all transactions included in the current epoch so far until this checkpoint.
  • networkTotalTransactions : <[BigInt_for_uint64]> - Total number of transactions committed since genesis, including those in this checkpoint.
  • previousDigest : <[CheckpointDigest]> - Digest of the previous checkpoint
  • sequenceNumber : <[BigInt_for_uint64]> - Checkpoint sequence number
  • timestampMs : <[BigInt_for_uint64]> - Timestamp of the checkpoint - number of milliseconds from the Unix epoch Checkpoint timestamps are monotonic, but not strongly monotonic - subsequent checkpoints can have same timestamp if they originate from the same underlining consensus commit
  • transactions : <[TransactionDigest]> - Transaction digests
  • validatorSignature : <[Base64]> - Validator Signature

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getCheckpoint",
  "params": [
    "1000"
  ]
}
'

Return

{
    "jsonrpc": "2.0",
    "result": {
        "epoch": "0",
        "sequenceNumber": "1000",
        "digest": "BE4JixC94sDtCgHJZruyk7QffZnWDFvM2oFjC8XtChET",
        "networkTotalTransactions": "1001",
        "previousDigest": "41nPNZWHvvajmBQjX3GbppsgGZDEB6DhN4UxPkjSYRRj",
        "epochRollingGasCostSummary": {
            "computationCost": "0",
            "storageCost": "0",
            "storageRebate": "0",
            "nonRefundableStorageFee": "0"
        },
        "timestampMs": "1681393657483",
        "transactions": [
            "9NnjyPG8V2TPCSbNE391KDyge42AwV3vUD7aNtQQ9eqS"
        ],
        "checkpointCommitments": [],
        "validatorSignature": "r8/5+Rm7niIlndcnvjSJ/vZLPrH3xY/ePGYTvrVbTascoQSpS+wsGlC+bQBpzIwA"
    },
    "id": 1
}
Language
Click Try It! to start a request and see the response here!