【发布时间】:2020-02-07 15:29:40
【问题描述】:
我是 Corda 的新手,我已经列出了所有已签名的交易,但现在我正在尝试使用 RPC 列出有关特定交易(通过哈希)的所有信息。
谁能告诉我这是否可行,如果可行,我该怎么做?
非常感谢:)
【问题讨论】:
标签: hash transactions sdk rpc corda
我是 Corda 的新手,我已经列出了所有已签名的交易,但现在我正在尝试使用 RPC 列出有关特定交易(通过哈希)的所有信息。
谁能告诉我这是否可行,如果可行,我该怎么做?
非常感谢:)
【问题讨论】:
标签: hash transactions sdk rpc corda
// proxy is returned by the rpc connection
FlowProgressHandle<SignedTransaction> flowHandle = proxy
.startTrackedFlowDynamic(YourFlowName.class,
Param1,param2
);
progressTrackerService.getProgressTracker(flowHandle, request);
// The line below blocks and waits for the flow to return.
final SignedTransaction result = flowHandle
.getReturnValue()
.get();
//suppose I want to get ABCState outputState from the above txn
// Like wise you can do any type of filtering on the returned Txn
List<ABCState> aBCStates= result.getTx().outputsOfType
(ABCState.Class);
【讨论】:
【讨论】: