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_getTotalSupply"
required
JSON-RPC method name.
The paramters for method suix_getTotalSupply: [coinType].Positional parameters for suix_getTotalSupply:
Returns
value - The total supply.
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_getTotalSupply",
"params": [
"0xe5c651321915b06c81838c2e370109b554a448a78d3a56220f798398dde66eab::acoin::ACOIN"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"value": "12023692"
}
}