Parameters
Unique identifier for a blockchain network.
Request identifier used to match responses.
JSON-RPC version.
JSON-RPC method name.
Returns
Validator APY data for the current epoch.
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": "suix_getValidatorsApy",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"apys": [
{
"address": "0x17d287a7c6b01137968a42938ec7c96755e8ffb9d8e85f113ca030ac204091f3",
"apy": 6.29
},
{
"address": "0x25cbe011d0310211ce5d50a36bc3f7f8c73be2a278f9e0e8ef342aee1a651c1d",
"apy": 5.72
}
],
"epoch": "42"
}
}
Return the validator APY.
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": "suix_getValidatorsApy",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"apys": [
{
"address": "0x17d287a7c6b01137968a42938ec7c96755e8ffb9d8e85f113ca030ac204091f3",
"apy": 6.29
},
{
"address": "0x25cbe011d0310211ce5d50a36bc3f7f8c73be2a278f9e0e8ef342aee1a651c1d",
"apy": 5.72
}
],
"epoch": "42"
}
}
Was this page helpful?