CEP_Account.getTransactionOutcome()

With this method you can perform polling on the blockchain to get the transaction outcome as soon as the transaction gets executed.

Function Signature

public Map<String, Object> getTransactionOutcome(String txId, int timeoutSec, int intervalSec) throws Exception

Parameters

Parameter Name
Datatype

TxID

String

timeout

int

Example

//...
Map<String, Object> outcome = account.getTransactionOutcome(txId, 30, 2);

if(outcome.get("Result")){
    Map<String, Object> response = (Map<String, Object>) outcome.get("Response");
    String txBlock = (String) response.get("BlockID");
} else {
    //...
}
//...

Expected Result

Last updated