Package org.starcoin.api
Class StateRPCClient
java.lang.Object
org.starcoin.api.StateRPCClient
public class StateRPCClient extends Object
Starcoin State 相关json-rpc接口的封装。
- Since:
- 1.1.6
- Author:
- fanngyuan
-
Constructor Summary
Constructors Constructor Description StateRPCClient(URL baseUrl) -
Method Summary
Modifier and Type Method Description longgetAddressAmount(String address)用于获取某个地址下的token 数量ListResourcegetState(String address)用于某个地址的状态
-
Constructor Details
-
StateRPCClient
-
-
Method Details
-
getState
public ListResource getState(String address) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException用于某个地址的状态- Throws:
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
-
getAddressAmount
用于获取某个地址下的token 数量
-