Package org.starcoin.api
Class TokenContractRPCClient
java.lang.Object
org.starcoin.api.ContractRPCClient
org.starcoin.api.TokenContractRPCClient
public class TokenContractRPCClient extends ContractRPCClient
-
Field Summary
Fields Modifier and Type Field Description static StringSTCTypeTagstatic StringTokenMarketCapTypeTagstatic StringTreasuryBalanceTypeTag -
Constructor Summary
Constructors Constructor Description TokenContractRPCClient(URL baseUrl) -
Method Summary
Modifier and Type Method Description BigIntegergetSTCCurrentSupply()BigIntegergetSTCMarketCap()BigIntegergetSTCTreasurBalance()BigIntegergetTokenMarketCap(String tokenTypeTag)BigIntegergetTreasurBalance(String tokenTypeTag)Methods inherited from class org.starcoin.api.ContractRPCClient
call
-
Field Details
-
STCTypeTag
- See Also:
- Constant Field Values
-
TreasuryBalanceTypeTag
- See Also:
- Constant Field Values
-
TokenMarketCapTypeTag
- See Also:
- Constant Field Values
-
-
Constructor Details
-
TokenContractRPCClient
-
-
Method Details
-
getTokenMarketCap
public BigInteger getTokenMarketCap(String tokenTypeTag) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-
getTreasurBalance
public BigInteger getTreasurBalance(String tokenTypeTag) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-
getSTCMarketCap
public BigInteger getSTCMarketCap() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-
getSTCTreasurBalance
public BigInteger getSTCTreasurBalance() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-
getSTCCurrentSupply
public BigInteger getSTCCurrentSupply() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-