GetTransactionOutcome()
Get transactions processed during a range of dates by a specific address
Method Signature
func GetTransactionOutcome(Blockchain string, TxID string, timeoutSec int) string
Parameters
Name
Type
Description
Blockchain
String
Blockchain address in hex
TxID
String
Transaction ID to check
timeoutSec
int
timeout for polling
Example
package main
import (
"fmt"
"github.com/circular-protocol/circular-go/circular_protocol_api"
)
func main() {
var blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2"
var txid = "0x8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738"
check := circular_protocol_api.GetTransactionOutcome(blockchain, txid, 20)
}
Result
The result will be a string with one of the following values: Executed
, Transaction Not Found
or Pending
Last updated