public class BlockApi extends Api
| 构造器和说明 |
|---|
BlockApi(java.lang.String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.math.BigInteger |
getBestBlockNumber() |
java.util.List<BlockBody> |
getBlockBodies(java.util.List<java.lang.String> hashes) |
BlockBody |
getBlockBodyByHash(java.lang.String hash) |
Block |
getBlockByHash(java.lang.String hash) |
Block |
getBlockByNumber(java.math.BigInteger blockNumber) |
BlockHeader |
getBlockHeaderByHash(java.lang.String hash) |
BlockHeader |
getBlockHeaderByNumber(java.math.BigInteger blockNumber) |
java.util.List<BlockHeader> |
getBlockHeadersByNumber(java.math.BigInteger start,
java.lang.Integer limit) |
java.math.BigInteger |
getTotalDifficultyByHash(java.lang.String hash) |
java.math.BigInteger |
getTotalDifficultyByNumber(java.math.BigInteger number) |
java.lang.Integer |
getTransactionCountByHash(java.lang.String hash) |
public java.math.BigInteger getBestBlockNumber()
throws java.io.IOException
java.io.IOExceptionpublic BlockHeader getBlockHeaderByNumber(java.math.BigInteger blockNumber) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<BlockHeader> getBlockHeadersByNumber(java.math.BigInteger start, java.lang.Integer limit) throws java.io.IOException
java.io.IOExceptionpublic BlockHeader getBlockHeaderByHash(java.lang.String hash) throws java.io.IOException
java.io.IOExceptionpublic BlockBody getBlockBodyByHash(java.lang.String hash) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<BlockBody> getBlockBodies(java.util.List<java.lang.String> hashes) throws java.io.IOException
java.io.IOExceptionpublic Block getBlockByNumber(java.math.BigInteger blockNumber) throws java.io.IOException
java.io.IOExceptionpublic Block getBlockByHash(java.lang.String hash) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Integer getTransactionCountByHash(java.lang.String hash)
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger getTotalDifficultyByNumber(java.math.BigInteger number)
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger getTotalDifficultyByHash(java.lang.String hash)
throws java.io.IOException
java.io.IOException