Parameters
Unique identifier for a blockchain network.
Request identifier used to match responses.
JSON-RPC version.
JSON-RPC method name.
Returns
Number - containing the API version.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getApiLevel",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": 0
}
Very simple API versioning scheme. Every time we add a new capability, the number is incremented. This allows for Otterscan to check if the Erigon node contains all API it needs.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "ots_getApiLevel",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": 0
}
Was this page helpful?