mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-15 15:46:06 +00:00
feat(python): update build_tx.py to new API
This commit is contained in:
parent
3d6d1a56ac
commit
2327cab436
@ -159,15 +159,17 @@ def sign_interactive():
|
||||
inputs, txes = _get_inputs_interactive(blockbook_url)
|
||||
outputs = _get_outputs_interactive()
|
||||
|
||||
signtx = messages.SignTx()
|
||||
signtx.version = prompt("Transaction version", type=int, default=2)
|
||||
signtx.lock_time = prompt("Transaction locktime", type=int, default=0)
|
||||
version = prompt("Transaction version", type=int, default=2)
|
||||
lock_time = prompt("Transaction locktime", type=int, default=0)
|
||||
|
||||
result = {
|
||||
"coin_name": coin,
|
||||
"inputs": [to_dict(i, hexlify_bytes=True) for i in inputs],
|
||||
"outputs": [to_dict(o, hexlify_bytes=True) for o in outputs],
|
||||
"details": to_dict(signtx, hexlify_bytes=True),
|
||||
"details": {
|
||||
"version": version,
|
||||
"lock_time": lock_time,
|
||||
},
|
||||
"prev_txes": {
|
||||
txhash: to_dict(txdata, hexlify_bytes=True)
|
||||
for txhash, txdata in txes.items()
|
||||
|
Loading…
Reference in New Issue
Block a user