Update account_escrows.py

This commit is contained in:
Obiajulu
2022-09-03 00:56:05 -07:00
committed by GitHub
parent 16d58c9bdd
commit 9b6e8fa1dc

View File

@@ -1,8 +1,11 @@
from xrpl.models import AccountObjects
from xrpl.utils import drops_to_xrp, ripple_time_to_datetime
from xrpl.clients import JsonRpcClient
# Retreive all escrows created or received by an account, formatted
client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # connect to the testnetwork
account_address = "rxxxxxxxxxxxxxxxxxxxxxxxx"
escrow_dict = {} # a dict to store all escrows