mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Update create_escrow.py
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
from xrpl.wallet import Wallet, generate_faucet_wallet
|
|
||||||
from xrpl.clients import JsonRpcClient
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from xrpl.utils import xrp_to_drops
|
|
||||||
|
from xrpl.clients import JsonRpcClient
|
||||||
|
from xrpl.models import EscrowCreate
|
||||||
from xrpl.transaction import (safe_sign_and_autofill_transaction,
|
from xrpl.transaction import (safe_sign_and_autofill_transaction,
|
||||||
send_reliable_submission)
|
send_reliable_submission)
|
||||||
from xrpl.utils import datetime_to_ripple_time
|
from xrpl.utils import datetime_to_ripple_time, xrp_to_drops
|
||||||
from xrpl.models import EscrowCreate
|
from xrpl.wallet import generate_faucet_wallet
|
||||||
|
|
||||||
# Create Escrow
|
# Create Escrow
|
||||||
|
|
||||||
@@ -25,7 +25,6 @@ expiry_date = datetime_to_ripple_time(datetime.now() + timedelta(days=5))
|
|||||||
# You can optionally use a Crypto Condition to allow for dynamic release of funds. For example:
|
# You can optionally use a Crypto Condition to allow for dynamic release of funds. For example:
|
||||||
condition = "A02580205A0E9E4018BE1A6E0F51D39B483122EFDF1DDEF3A4BE83BE71522F9E8CDAB179810120" # do not use in production
|
condition = "A02580205A0E9E4018BE1A6E0F51D39B483122EFDF1DDEF3A4BE83BE71522F9E8CDAB179810120" # do not use in production
|
||||||
|
|
||||||
|
|
||||||
# sender wallet object
|
# sender wallet object
|
||||||
sender_wallet = generate_faucet_wallet(client=client)
|
sender_wallet = generate_faucet_wallet(client=client)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user