Parameters
chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"sui_getCheckpoint"
required
JSON-RPC method name.
params
object
default:["1000"]
required
Parameters to fetch checkpoint data by digest or sequence number.Positional parameters for sui_getCheckpoint:params[]: Checkpoint ID - can be a checkpoint digest or sequence number.
Returns
The JSON-RPC result.
Checkpoint commitment structure
Checkpoint digest as base64 string
Optional data available on final checkpoint of an epoch
epochRollingGasCostSummary
Running total gas costs in the epoch until this checkpoint
Total number of transactions committed since genesis
Digest of the previous checkpoint
Checkpoint sequence number
Checkpoint timestamp in milliseconds since epoch
Validator’s signature of this checkpoint
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "sui_getCheckpoint",
"params": [
"1000"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"epoch": "5000",
"sequenceNumber": "1000",
"digest": "G6Dtzr1ZSfHFhotGsTE3cLENa7L1ooe1BBvknAUsARbV",
"networkTotalTransactions": "792385",
"previousDigest": "6tBy8RXZKrdrB4XkMQn7J3MNG4fQCo9XcRduFFvYrL5Z",
"epochRollingGasCostSummary": {
"computationCost": "0",
"storageCost": "0",
"storageRebate": "0",
"nonRefundableStorageFee": "0"
},
"timestampMs": "1676911928",
"transactions": [
"mN8YNBgVR3wB7vfXmjVgDRF4oqxVRRjzmJ6U4mzbq77"
],
"__truncated": true
}
}