Parameters
chainId
string
default:"43113"
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:"index.getLastAccepted"
required
JSON-RPC method name.
Encoding configuration for the returned data.Parameters for index.getLastAccepted:params.encoding: Specifies the encoding format. Must be “hex”.
Returns
Details of the last accepted container on the chain.
The container ID of the last accepted container.
Hex-encoded byte representation of the container.
Unix timestamp when the container was accepted.
Encoding format used in bytes (always “hex”).
The sequential index of this container.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43113 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}