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 mercuryUrl,
boolean isDebug) |
| Modifier and Type | Method and Description |
|---|---|
CellsResponse |
getCells(SearchKey searchKey,
java.lang.String order,
java.lang.String limit,
java.lang.String afterCursor) |
CellCapacityResponse |
getCellsCapacity(SearchKey searchKey) |
TipResponse |
getTip() |
TransactionResponse |
getTransactions(SearchKey searchKey,
java.lang.String order,
java.lang.String limit,
java.lang.String afterCursor) |
public DefaultIndexerApi(java.lang.String mercuryUrl,
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, java.lang.String order, java.lang.String limit, java.lang.String afterCursor) throws java.io.IOException
getCells in interface CkbIndexerApijava.io.IOExceptionpublic TransactionResponse getTransactions(SearchKey searchKey, java.lang.String order, java.lang.String limit, java.lang.String afterCursor) throws java.io.IOException
getTransactions in interface CkbIndexerApijava.io.IOExceptionpublic CellCapacityResponse getCellsCapacity(SearchKey searchKey) throws java.io.IOException
getCellsCapacity in interface CkbIndexerApijava.io.IOException