Parameters
chainId
string
default:"sui"
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:"suix_getValidatorsApy"
required
JSON-RPC method name.
This method does not require any parameters.
Returns
Validator APY data for the current epoch.
List of validator APY data.
APY details for a specific validator.
The validator APY (annual percentage yield).
Epoch number (uint64) when the APY was calculated.
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"
}
}