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": "platform.getTotalStake",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Get the total amount of tokens staked on the requested Subnet.
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": "platform.getTotalStake",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
platform.getTotalStake:params.subnetID: The ID of the Subnet for which total stake information is being requested.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": "platform.getTotalStake",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?