From 9b6e8fa1dc72b53ce2457edc2fb79e595d01f1ca Mon Sep 17 00:00:00 2001 From: Obiajulu <47371105+ObiajuluM@users.noreply.github.com> Date: Sat, 3 Sep 2022 00:56:05 -0700 Subject: [PATCH] Update account_escrows.py --- content/_code-samples/escrow/py/account_escrows.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/_code-samples/escrow/py/account_escrows.py b/content/_code-samples/escrow/py/account_escrows.py index 4c061368e1..b9e1665244 100644 --- a/content/_code-samples/escrow/py/account_escrows.py +++ b/content/_code-samples/escrow/py/account_escrows.py @@ -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