get_transaction_hex¶
-
Api.
get_transaction_hex
(tx: dict, remove_sigs=False) → str[source]¶ Get the string hexadecimal representation of a
dict
transaction object.Example Usage:
>>> tx = { ... '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': [] ... } >>> Api().get_transaction_hex(tx) '4b6d2b19f0b3784b935d01020a736f6d656775793132330d6b73616e746f70726f7465696e640000000000000003474f4c4f53 00000774657374696e6700'
- Parameters
- Return str txhex
The hexadecimal representation of the transaction