public class Api
extends java.lang.Object
| Constructor and Description |
|---|
Api(java.lang.String nodeUrl) |
Api(java.lang.String nodeUrl,
boolean isDebug) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
computeScriptHash(Script script) |
java.lang.String |
computeTransactionHash(Transaction transaction) |
java.util.List<java.lang.String> |
deindexLockHash(java.lang.String lockHash) |
Cycles |
dryRunTransaction(Transaction transaction)
Experiment RPC
|
FeeRate |
estimateFeeRate(java.lang.String expectedConfirmBlocks) |
java.util.List<BannedResultAddress> |
getBannedAddress() |
Block |
getBlock(java.lang.String blockHash) |
Block |
getBlockByNumber(java.lang.String blockNumber) |
BlockchainInfo |
getBlockchainInfo()
Stats RPC
|
java.lang.String |
getBlockHash(java.lang.String blockNumber) |
CellbaseOutputCapacity |
getCellbaseOutputCapacityDetails(java.lang.String blockHash) |
java.util.List<CellOutputWithOutPoint> |
getCellsByLockHash(java.lang.String lockHash,
java.lang.String fromBlockNumber,
java.lang.String toBlockNumber) |
Epoch |
getCurrentEpoch() |
Epoch |
getEpochByNumber(java.lang.String epochNumber) |
Header |
getHeader(java.lang.String blockHash) |
Header |
getHeaderByNumber(java.lang.String blockNumber) |
CellWithStatus |
getLiveCell(OutPoint outPoint,
boolean withData) |
java.util.List<LiveCell> |
getLiveCellsByLockHash(java.lang.String lockHash,
java.lang.String page,
java.lang.String pageSize,
boolean reverseOrder) |
java.util.List<LockHashIndexState> |
getLockHashIndexStates() |
java.util.List<NodeInfo> |
getPeers() |
java.util.List<PeerState> |
getPeersState() |
java.math.BigInteger |
getTipBlockNumber() |
Header |
getTipHeader() |
TransactionWithStatus |
getTransaction(java.lang.String transactionHash) |
java.util.List<CellTransaction> |
getTransactionsByLockHash(java.lang.String lockHash,
java.lang.String page,
java.lang.String pageSize,
boolean reverseOrder) |
LockHashIndexState |
indexLockHash(java.lang.String lockHash) |
LockHashIndexState |
indexLockHash(java.lang.String lockHash,
java.lang.String indexFrom) |
NodeInfo |
localNodeInfo()
Net RPC
|
java.lang.String |
sendTransaction(Transaction transaction) |
java.lang.String |
setBan(BannedAddress bannedAddress) |
TxPoolInfo |
txPoolInfo()
Pool RPC
|
public Api(java.lang.String nodeUrl)
public Api(java.lang.String nodeUrl,
boolean isDebug)
public Block getBlock(java.lang.String blockHash) throws java.io.IOException
java.io.IOExceptionpublic Block getBlockByNumber(java.lang.String blockNumber) throws java.io.IOException
java.io.IOExceptionpublic TransactionWithStatus getTransaction(java.lang.String transactionHash) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getBlockHash(java.lang.String blockNumber)
throws java.io.IOException
java.io.IOExceptionpublic CellbaseOutputCapacity getCellbaseOutputCapacityDetails(java.lang.String blockHash) throws java.io.IOException
java.io.IOExceptionpublic Header getTipHeader() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<CellOutputWithOutPoint> getCellsByLockHash(java.lang.String lockHash, java.lang.String fromBlockNumber, java.lang.String toBlockNumber) throws java.io.IOException
java.io.IOExceptionpublic CellWithStatus getLiveCell(OutPoint outPoint, boolean withData) throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger getTipBlockNumber()
throws java.io.IOException
java.io.IOExceptionpublic Epoch getCurrentEpoch() throws java.io.IOException
java.io.IOExceptionpublic Epoch getEpochByNumber(java.lang.String epochNumber) throws java.io.IOException
java.io.IOExceptionpublic Header getHeader(java.lang.String blockHash) throws java.io.IOException
java.io.IOExceptionpublic Header getHeaderByNumber(java.lang.String blockNumber) throws java.io.IOException
java.io.IOExceptionpublic BlockchainInfo getBlockchainInfo() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<PeerState> getPeersState() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String setBan(BannedAddress bannedAddress) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<BannedResultAddress> getBannedAddress() throws java.io.IOException
java.io.IOExceptionpublic TxPoolInfo txPoolInfo() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String sendTransaction(Transaction transaction) throws java.io.IOException
java.io.IOExceptionpublic NodeInfo localNodeInfo() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<NodeInfo> getPeers() throws java.io.IOException
java.io.IOExceptionpublic Cycles dryRunTransaction(Transaction transaction) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String computeTransactionHash(Transaction transaction) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String computeScriptHash(Script script) throws java.io.IOException
java.io.IOExceptionpublic FeeRate estimateFeeRate(java.lang.String expectedConfirmBlocks) throws java.io.IOException
java.io.IOExceptionpublic LockHashIndexState indexLockHash(java.lang.String lockHash) throws java.io.IOException
java.io.IOExceptionpublic LockHashIndexState indexLockHash(java.lang.String lockHash, java.lang.String indexFrom) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<java.lang.String> deindexLockHash(java.lang.String lockHash)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<LockHashIndexState> getLockHashIndexStates() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<LiveCell> getLiveCellsByLockHash(java.lang.String lockHash, java.lang.String page, java.lang.String pageSize, boolean reverseOrder) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<CellTransaction> getTransactionsByLockHash(java.lang.String lockHash, java.lang.String page, java.lang.String pageSize, boolean reverseOrder) throws java.io.IOException
java.io.IOException