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 function getTransactionOutcome(string $TxID, int $timeout)Parameters
Parameter Name
Datatype
$TxID
String
$timeout
int
Example
//...
$response = $account->getTransactionOutcome($txID, 10);
if ($resp["BlockID"]) {
$blockID = $resp["BlockID"];
// ...
} else {
echo "Transaction not executed";
}
//...Expected Result
Last updated