suix_getTotalSupply
Return total supply for a coin
Parameters:
Returns:
Example:
// Request
curl https://sui.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json"
--data
'{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_getTotalSupply",
"params": [
"0x2::sui::SUI"
]
}'
// Result
{
"jsonrpc": "2.0",
"result": {
"value": "10000000000000000000"
},
"id": 1
}Last updated
Was this helpful?