curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Returns the most recently accepted container on the chain. Typically used to track chain head progress.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
index.getLastAccepted:params.encoding: Specifies the encoding format. Must be “hex”.Show properties
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "index.getLastAccepted",
"params": {
"encoding": "hex"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?