public class BlockRPCClient extends Object
| 构造器和说明 |
|---|
BlockRPCClient(URL baseUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
Block |
getBlockByHash(String hash) |
Block |
getBlockByHeight(long height) |
List<Block> |
getBlockListFromHeight(long height,
int count) |
BlockHeader |
getChainHeader() |
public BlockRPCClient(URL baseUrl)
public BlockHeader getChainHeader() throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic Block getBlockByHash(String hash) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionpublic Block getBlockByHeight(long height) throws com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException
com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionExceptionCopyright © 2021. All rights reserved.