| 程序包 | 说明 |
|---|---|
| cn.tdchain.jbcc | |
| cn.tdchain.jbcc.rpc |
| 限定符和类型 | 方法和说明 |
|---|---|
Result<BatchTrans<TransHead>> |
Connection.addBatchTrans(BatchTrans<Trans> batch)
Description: 批量交易
|
Result<TransHead> |
Connection.addPermissionTrans(Permission permission)
Description: 添加一笔系统权限交(只有管理员证书才能使用)
|
Result<TransHead> |
Connection.addTrans(Trans trans)
Description: 添加一笔交易
|
Result<Block<Trans>> |
Connection.getBlock(long height)
Description: 根据块高度查询块信息
|
Result<Long> |
Connection.getBlockChainTransCount()
Description:查询区块链交易总数
|
Result<BlockHead> |
Connection.getBlockHead(long height)
Description: 根据height查询block header
|
Result<List<BlockHead>> |
Connection.getBlockHeadList(long startHeight,
long endHeight)
Description: 根据块高度查询块信息
|
Result<Integer> |
Connection.getConnectionCount()
Description:获取当前区块链的连接数
|
Result<Block<Trans>> |
Connection.getMaxBlock()
Description: 查询最大块信息
|
Result<BlockHead> |
Connection.getMaxBlockHead()
Description: 查询最大的块header,不包含交易
|
Result<Trans> |
Connection.getNewSystemTransByKey(String key)
Description: 根据key获取系统交易(只有管理员才能使用该方法,使用该方法只能查询系统交易,查询普通交易请使用getNewTransByKey)
|
Result<Trans> |
Connection.getNewTransByAccountAndKey(String account,
String key)
Description:根据account和key获取最新交易
|
Result<BQLResult> |
Connection.getNewTransByBQL(BQL bql)
Description: 根据BlockChain Query Langage 区块链面向对象查询语言的查询条件获取对应key上的最新版本交易
|
Result<Trans> |
Connection.getNewTransByKey(String key)
Description: 根据key维度查询交易
|
Result<Integer> |
Connection.getNewTransCount()
Description:查询当前账户下的交易总数
|
Result<Integer> |
Connection.getNewTransCountByAccount(String account)
Description:查询账户account下的交易总数
|
Result<List<Trans>> |
Connection.getNewTransList(int limit,
int offset)
Description:查询当前账户下的交易集合
|
Result<List<TransHead>> |
Connection.getNewTransListByAccount(String account)
Description: 获取account的最新交易
|
Result<List<Trans>> |
Connection.getNewTransListByAccount(String account,
int limit,
int offset)
Description:查询账户account下的交易集合
|
Result<List<Trans>> |
Connection.getNewTransListByAccountAndKeys(String account,
List<String> keys)
Description: 根据account和key集合获取交易
|
Result<List<Trans>> |
Connection.getNewTransListByKeys(List<String> keys)
Description: 根据key集合获取交易
查询自己的交易
|
Result<Trans> |
Connection.getPermissionTrans()
Description:查询系统权限交易(管理员才能读取)
|
Result<Trans> |
Connection.getTransByAccountAndHash(String account,
String hash)
Description: 根据hash和账户查询交易信息
|
Result<Trans> |
Connection.getTransByHash(String hash)
Description: 根据hash查询交易信息
|
Result<Integer> |
Connection.getTransCountByAccountAndType(String account,
String type)
根据交易类type和account查询交易数量
|
Result<List<Trans>> |
Connection.getTransHistoryByAccountAndKey(String account,
String key,
int startIndex,
int endIndex)
根据account 和key查询历史
|
Result<List<Trans>> |
Connection.getTransHistoryByKey(String key,
int startIndex,
int endIndex)
Description:根据key维度查询交易历史
|
Result<List<Trans>> |
Connection.getTransListByAccountAndType(String account,
String type,
int limit,
int offset)
根据交易类type和account查询交易
|
Result<List<Trans>> |
Connection.getTransListByHashList(List<String> hashList)
Description: 根据hashlist查询交易
|
Result<List<Trans>> |
Connection.getTransListByType(String type)
根据交易类type查询交易
|
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
RPCBatchResult.getResult() |
<T> Result<T> |
RPCBatchResult.getResult(com.alibaba.fastjson.TypeReference<T> typeReference)
直接返回结果
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<Result<T>> |
RPCBatchResult.buildList(com.alibaba.fastjson.TypeReference<T> typeReference) |
| 限定符和类型 | 方法和说明 |
|---|---|
RPCBatchResult |
RPCBatchResult.add(Result result) |
RPCBatchResult |
RPCBatchResult.result(Result result) |
Copyright © 2020. All Rights Reserved.