Better result's output

This commit is contained in:
Wo Jake
2022-09-03 16:30:56 +00:00
committed by GitHub
parent 39bec75e10
commit f3f7c46256

View File

@@ -24,3 +24,14 @@ tx = AccountSet(
# Sign the transaction locally and submit to a node
my_tx_payment_signed = safe_sign_and_submit_transaction(tx, wallet=wallet_from_seed, client=client)
my_tx_payment_signed = my_tx_payment_signed.result
result = my_tx_payment_signed["engine_result"]
if result == "tesSUCCESS":
print("AccountSet transaction successful, Destination Tag is now required for all incoming transactions")
elif result == "tefMAX_LEDGER":
print("Transaction failed to achieve consensus")
elif result == "unknown":
print("Transaction status unknown")
else:
print(f"Transaction failed with code {result}")