public interface LightClientApi
| Modifier and Type | Method and Description |
|---|---|
FetchedHeader |
fetchHeader(byte[] blockHash) |
FetchedTransaction |
fetchTransaction(byte[] transactionHash) |
org.nervos.indexer.model.resp.CellsResponse |
getCells(org.nervos.indexer.model.SearchKey searchKey,
org.nervos.indexer.model.Order order,
int limit,
byte[] afterCursor) |
org.nervos.indexer.model.resp.CellCapacityResponse |
getCellsCapacity(org.nervos.indexer.model.SearchKey searchKey) |
org.nervos.ckb.type.Block |
getGenesisBlock() |
org.nervos.ckb.type.Header |
getHeader(byte[] blockHash) |
java.util.List<ScriptDetail> |
getScripts() |
org.nervos.ckb.type.Header |
getTipHeader() |
TransactionWithHeader |
getTransaction(byte[] transactionHash) |
TxsWithCell |
getTransactions(org.nervos.indexer.model.SearchKey searchKey,
org.nervos.indexer.model.Order order,
int limit,
byte[] afterCursor) |
TxsWithCells |
getTransactionsGrouped(org.nervos.indexer.model.SearchKey searchKey,
org.nervos.indexer.model.Order order,
int limit,
byte[] afterCursor) |
byte[] |
sendTransaction(org.nervos.ckb.type.Transaction transaction) |
void |
setScripts(java.util.List<ScriptDetail> scriptDetails) |
void setScripts(java.util.List<ScriptDetail> scriptDetails) throws java.io.IOException
java.io.IOExceptionjava.util.List<ScriptDetail> getScripts() throws java.io.IOException
java.io.IOExceptionbyte[] sendTransaction(org.nervos.ckb.type.Transaction transaction)
throws java.io.IOException
java.io.IOExceptionorg.nervos.ckb.type.Header getTipHeader()
throws java.io.IOException
java.io.IOExceptionorg.nervos.ckb.type.Block getGenesisBlock()
throws java.io.IOException
java.io.IOExceptionorg.nervos.ckb.type.Header getHeader(byte[] blockHash)
throws java.io.IOException
java.io.IOExceptionTransactionWithHeader getTransaction(byte[] transactionHash) throws java.io.IOException
java.io.IOExceptionFetchedHeader fetchHeader(byte[] blockHash) throws java.io.IOException
java.io.IOExceptionFetchedTransaction fetchTransaction(byte[] transactionHash) throws java.io.IOException
java.io.IOExceptionorg.nervos.indexer.model.resp.CellsResponse getCells(org.nervos.indexer.model.SearchKey searchKey,
org.nervos.indexer.model.Order order,
int limit,
byte[] afterCursor)
throws java.io.IOException
java.io.IOExceptionTxsWithCell getTransactions(org.nervos.indexer.model.SearchKey searchKey, org.nervos.indexer.model.Order order, int limit, byte[] afterCursor) throws java.io.IOException
java.io.IOExceptionTxsWithCells getTransactionsGrouped(org.nervos.indexer.model.SearchKey searchKey, org.nervos.indexer.model.Order order, int limit, byte[] afterCursor) throws java.io.IOException
java.io.IOExceptionorg.nervos.indexer.model.resp.CellCapacityResponse getCellsCapacity(org.nervos.indexer.model.SearchKey searchKey)
throws java.io.IOException
java.io.IOException