getTransactionOutcome()
Get recursively if the transaction gets processed
Method Signature
public function getTransactionOutcome($blockchain, $txID, $timeoutSec)
Parameters
Name
Type
Description
blockchain
string
Blockchain address in hex
txID
string
txID
timeoutSec
int
Polling every n sec
Example
<?php
require 'vendor/autoload.php';
use CircularProtocol\Api\CircularProtocolAPI;
$circular = new CircularProtocolAPI();
$blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
$TxID = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738";
$result = $circular->getTransactionOutcome($blockchain, $TxID, 20);
echo $result;
Result
The result will be of type Array
, but for easier readability, here is the equivalent in JSON. Check the GetTransactionbyID()
for result examples.
Last updated