getTransactionOutcome()
Get transactions processed during a range of dates
Method Signature
def getTransactionOutcome(self, Blockchain, TxID, timeoutSec, intervalSec=10)
Parameters
Name
Type
Description
Blockchain
string or hexadecimal
Blockchain address
TxID
string or hexadecimal
Transaction ID returned by the sendTransaction
method
timeoutSec
int
Timeout in seconds
intervalSec
int
Interval between pollings
Example
from circular_protocol_api import CircularProtocolAPI
circular = CircularProtocolAPI()
blockchain = "8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2"
txID = "46404c4499504876e667972d004bfd2c3df18c6c25948ec086ae62906b05111a"
outcome = circular.getTransactionOutcome(blockchain, txID, 100)
Result
{
"Result": 200,
"Response": {
"BlockID": "5084",
"BroadcastFee": 1,
"DeveloperFee": 0,
"From": "8b1dd25076c04c5139acba458f86c69cd2d322c61d19bc28daa3bbd945083738",
"GasLimit": 0,
"ID": "46404c4499504876e667972d004bfd2c3df18c6c25948ec086ae62906b05111a",
"Instructions": 0,
"NagFee": 0.5,
"NodeID": "fc8fe5ee103dafe353c98ce90a1cb2956fd51a109512e074bd3d26a06d268e81",
"Nonce": "196",
"OSignature": "304502200cd2e0221be32929ab4504306b126265dcb63674a33ff199fa8ae3df5fa1c89f022100b42997629e4fc4605e6716e9e29163e0290ffd4f31c201b99673c590455859e4",
"Payload": "7b22416d6f756e74223a202231222c20224173736574223a202243495258222c2022416374696f6e223a202243505f53454e44222c20224d656d6f223a202248656c6c6f20576f726c64227d",
"ProcessingFee": 1.5,
"ProtocolFee": 1,
"Status": "Executed",
"Timestamp": "2024:10:20-09:57:48",
"To": "8d2cba1572aba321ee6b33bfe27f8743d93fc2b2c3218d0bd77ad25ef3b82a3c",
"Type": "C_TYPE_COIN"
},
"Node": "02fc8b01bfc5dc2911941871e6de81f5f6fe60f3961343f802ad78e7e077ea32"
}
Last updated