public class TokenContractRPCClient extends ContractRPCClient
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
STCTypeTag |
static String |
TokenMarketCapTypeTag |
static String |
TreasuryBalanceTypeTag |
| 构造器和说明 |
|---|
TokenContractRPCClient(URL baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
BigInteger |
getSTCCurrentSupply()
获取 STC 的实际供应量
|
BigInteger |
getSTCMarketCap()
用于获取 STC 的市场容量
|
BigInteger |
getSTCTreasurBalance()
用于获取 STC 在国库中的数量
|
BigInteger |
getTokenCurrentSupply(String tokenTypeTag)
获取某个 token 的实际供应量
|
BigInteger |
getTokenMarketCap(String tokenTypeTag)
获取某个 token 的市场容量
|
BigInteger |
getTreasurBalance(String tokenTypeTag)
用于获取某个 token 在国库中的数量
|
callpublic TokenContractRPCClient(URL baseUrl)
public BigInteger getTokenMarketCap(String tokenTypeTag) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic BigInteger getTreasurBalance(String tokenTypeTag) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic BigInteger getTokenCurrentSupply(String tokenTypeTag) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic BigInteger getSTCMarketCap() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic BigInteger getSTCTreasurBalance() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic BigInteger getSTCCurrentSupply() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionCopyright © 2021. All rights reserved.