getTokenSupply RPC 方法
返回 SPL Token 类型的总供应量。
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getTokenSupply",> "params": [> "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E",> {> "commitment": "finalized"> }> ]> }> '
params
stringrequired
要查询的代币 Mint 的公钥,使用 base-58 编码的字符串表示。
objectoptional
包含以下字段的配置对象:
result
Response
{"jsonrpc": "2.0","result": {"context": { "slot": 1114 },"value": {"amount": "100000","decimals": 2,"uiAmount": 1000,"uiAmountString": "1000"}},"id": 1}
object
一个包含以下内容的 JSON 对象:
Is this page helpful?