cfx_getSupplyInfo
Return information about total token supply.
- CURL
curl --request POST \
     --url https://main.confluxrpc.com \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [null],
  "method": "cfx_getSupplyInfo"
}'
Params
epoch_number optional
Represents rpc api epoch number param.
oneOf
- U64
- string
type : string
Pattern : 
^0x([1-9a-f][0-9a-f]{0,15}|0)$type : string
Possible values : 
- earliest
- latest_checkpoint
- latest_finalized
- latest_confirmed
- latest_state
- latest_mined
Result
Schema
type : object
- totalCirculating totalCirculatingtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- totalCollateral totalCollateraltype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- totalEspaceTokens totalEspaceTokenstype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- totalIssued totalIssuedtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- totalStaking totalStakingtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
Example
- cfx_getSupplyInfo
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getSupplyInfo",
    "params": []
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
  "totalCirculating": "0x1ed0badc4bd1db1b932a50af7bba2",
  "totalCollateral": "0xb04fc0d074a8f130c000",
  "totalEspaceTokens": "0x415cea29ab40c79e68e159",
  "totalIssued": "0x1ed0bbdeca44a1ae804bee16fbba2",
  "totalStaking": "0x8f54d24caad168157c61ac47"
}