find_op_transaction¶
-
Api.find_op_transaction(op: dict, ignore_keys: list = None) → dict[source]¶ Locate and return the full transaction from the blockchain based on a
dictoperation (op)The operation dictionary must contain at least
block, as well as all of the operation keys that would be found on the blockchain, with the values being the same type as they would be on the blockchain.Example usage:
>>> op = {'from': 'someguy123', 'to': 'ksantoprotein', 'amount': '0.100 GOLOS', 'memo': 'testing', ... 'number': 127287, 'block': 30895436, 'timestamp': '2019-10-01T12:49:00', 'type_op': 'transfer'} >>> Api().find_op_transaction(op) {'ref_block_num': 27979, 'ref_block_prefix': 3018856747, 'expiration': '2019-10-01T12:50:00', 'operations': [['transfer', {'from': 'someguy123', 'to': 'ksantoprotein', 'amount': '0.100 GOLOS', 'memo': 'testing'} ]], 'extensions': [], 'signatures': ['1f1a0212f7b9fe263acaeadf1ec127000dc234c413b543e3c268d251e...'] }
- Parameters
- Raises
TransactionNotFound – When a matching transaction could not be found on the blockchain.
- Return dict tx
The full transaction found on the blockchain as a
dict
A returned transaction is generally formatted like such:
dict(ref_block_num: int, ref_block_prefix: int, expiration: str, operations: list, extensions: list, signatures: list)