cfx_getSupplyInfo
Return information about total token supply.
Params
(1)1. epoch_number (required)
U64
(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
Result
(cfx_getSupplyInfo_result)totalCirculating
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalCollateral
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalEspaceTokens
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalIssued
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalStaking
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
Example
Request
curl -X POST --data \
'{
"method": "cfx_getSupplyInfo",
"params": [],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
{
"totalCirculating": "0x1ed0badc4bd1db1b932a50af7bba2",
"totalCollateral": "0xb04fc0d074a8f130c000",
"totalEspaceTokens": "0x415cea29ab40c79e68e159",
"totalIssued": "0x1ed0bbdeca44a1ae804bee16fbba2",
"totalStaking": "0x8f54d24caad168157c61ac47"
}