CEP_Account.get_transaction()

With this method you can search a specific transaction by the blockID and the TxID.

Function Signature

def get_transaction(blockNum, txID):

Parameters

Parameter Name
Datatype

blockNum

String

txID

String

Example

#...
tx_id = "your_txid" #usually you get that from the submit_certificateMethod
block_id = "your_block_id" #usually you get that from the get_transaction_outcome method
status = account.get_transaction(block_id, tx_id)

if status["Result"] == 200:
    print(f"Transaction Status: {status['Response']['Status']}")
    # ...
else:
    print("Error on retrieving transaction")
#...

Expected Result

Last updated