feat: show signed transaction details

This commit is contained in:
Vlad Stan
2022-08-03 13:49:56 +03:00
parent 73adc4a7e8
commit d80ae7de1b
4 changed files with 57 additions and 25 deletions
+9 -2
View File
@@ -32,7 +32,14 @@ from .crud import (
get_config,
update_config,
)
from .models import SignedTransaction, CreateWallet, CreatePsbt, Config, WalletAccount, ExtractPsbt
from .models import (
SignedTransaction,
CreateWallet,
CreatePsbt,
Config,
WalletAccount,
ExtractPsbt,
)
from .helpers import parse_key
@@ -289,7 +296,7 @@ async def api_psbt_extract_tx(
for out in transaction.vout:
tx["outputs"].append(
{"value": out.value, "address": out.script_pubkey.address()}
{"amount": out.value, "address": out.script_pubkey.address()}
)
res.tx_json = json.dumps(tx)
except Exception as e: