跳到主要内容

cfx_getSupplyInfo

Return information about total token supply.

Params

(1)

1. epoch_number (required)

(one of)
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$

Result

(cfx_getSupplyInfo_result)
totalCirculating
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalCollateral
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalEspaceTokens
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalIssued
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
totalStaking
string
Match 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"
}

Endpoint

Params

epoch_number


Request

curl -X POST --data \
'{
"method": "cfx_getSupplyInfo",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com