程序包 org.starcoin.api
类 TransactionRPCClient
java.lang.Object
org.starcoin.api.TransactionRPCClient
Starcoin Transaction 相关json-rpc接口的封装。
- 从以下版本开始:
- 1.1.6
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getBlockTransactions(String blockHash)通过 block hash 获取所有 TransactiongetEvents(Long fromBlock, Long toBlock, List<String> eventKeys, List<String> accountAddress, List<String> typeTags, Integer limit)getPendingTransaction(String hash)通过 transaction hash 获取某个 PendingTransactiongetTransactionByHash(String hash)通过 transaction hash 获取某个 TransactiongetTransactionEvents(String transactionHash)通过 transaction hash 获取某个 Transaction 的所有 EventgetTransactionInfoByBlockAndIndex(String blockHash, int transactionIndex)通过 block hash 和 transaction index 获取某个 TransactionInfogetTransactionInfoByHash(String hash)通过 transaction hash 获取某个 TransactionInfogetTransactionInfos(long startGlobalIndex, boolean reverse, int count)通过 transaction hash 获取某个 TransactionInfogetTransactionProof(String blockHash, long transactionGlobalIndex)获取block和transaction证明的相关信息getTransactionProof(String blockHash, long transactionGlobalIndex, int eventIndex)获取block和transaction证明的相关信息getTransactionProof(String blockHash, long transactionGlobalIndex, int eventIndex, String accessPath)获取block和transaction证明的相关信息
-
构造器详细资料
-
TransactionRPCClient
-
-
方法详细资料
-
getPendingTransaction
通过 transaction hash 获取某个 PendingTransaction -
getTransactionByHash
通过 transaction hash 获取某个 Transaction -
getTransactionInfoByHash
通过 transaction hash 获取某个 TransactionInfo -
getTransactionInfos
public List<Transaction> getTransactionInfos(long startGlobalIndex, boolean reverse, int count) throws JSONRPC2SessionException通过 transaction hash 获取某个 TransactionInfo -
getBlockTransactions
通过 block hash 获取所有 Transaction -
getTransactionEvents
通过 transaction hash 获取某个 Transaction 的所有 Event -
getEvents
-
getTransactionInfoByBlockAndIndex
public Transaction getTransactionInfoByBlockAndIndex(String blockHash, int transactionIndex) throws JSONRPC2SessionException通过 block hash 和 transaction index 获取某个 TransactionInfo- 参数:
blockHash-transactionIndex-- 返回:
- 抛出:
JSONRPC2SessionException
-
getTransactionProof
public TransactionInfoWithProof getTransactionProof(String blockHash, long transactionGlobalIndex) throws JSONRPC2SessionException获取block和transaction证明的相关信息- 参数:
blockHash-transactionGlobalIndex-- 返回:
- 抛出:
JSONRPC2SessionException
-
getTransactionProof
public TransactionInfoWithProof getTransactionProof(String blockHash, long transactionGlobalIndex, int eventIndex) throws JSONRPC2SessionException获取block和transaction证明的相关信息- 参数:
blockHash-transactionGlobalIndex-eventIndex-- 返回:
- 抛出:
JSONRPC2SessionException
-
getTransactionProof
public TransactionInfoWithProof getTransactionProof(String blockHash, long transactionGlobalIndex, int eventIndex, String accessPath) throws JSONRPC2SessionException获取block和transaction证明的相关信息- 参数:
blockHash-transactionGlobalIndex-eventIndex-accessPath-- 返回:
- 抛出:
JSONRPC2SessionException
-