public class DefaultIndexerApi extends java.lang.Object implements CkbIndexerApi
| Modifier and Type | Field and Description |
|---|---|
protected org.nervos.ckb.service.RpcService |
rpcService |
| Constructor and Description |
|---|
DefaultIndexerApi(org.nervos.ckb.service.RpcService rpcService) |
DefaultIndexerApi(java.lang.String indexerUrl,
boolean isDebug) |
| Modifier and Type | Method and Description |
|---|---|
CellsResponse |
getCells(SearchKey searchKey,
Order order,
int limit,
byte[] afterCursor) |
CellCapacityResponse |
getCellsCapacity(SearchKey searchKey) |
TipResponse |
getTip() |
TxsWithCell |
getTransactions(SearchKey searchKey,
Order order,
int limit,
byte[] afterCursor) |
TxsWithCells |
getTransactionsGrouped(SearchKey searchKey,
Order order,
int limit,
byte[] afterCursor) |
public DefaultIndexerApi(java.lang.String indexerUrl,
boolean isDebug)
public DefaultIndexerApi(org.nervos.ckb.service.RpcService rpcService)
public TipResponse getTip() throws java.io.IOException
getTip in interface CkbIndexerApijava.io.IOExceptionpublic CellsResponse getCells(SearchKey searchKey, Order order, int limit, byte[] afterCursor) throws java.io.IOException
getCells in interface CkbIndexerApijava.io.IOExceptionpublic TxsWithCell getTransactions(SearchKey searchKey, Order order, int limit, byte[] afterCursor) throws java.io.IOException
getTransactions in interface CkbIndexerApijava.io.IOExceptionpublic TxsWithCells getTransactionsGrouped(SearchKey searchKey, Order order, int limit, byte[] afterCursor) throws java.io.IOException
getTransactionsGrouped in interface CkbIndexerApijava.io.IOExceptionpublic CellCapacityResponse getCellsCapacity(SearchKey searchKey) throws java.io.IOException
getCellsCapacity in interface CkbIndexerApijava.io.IOException