From e93a448f5532f7ea6ee17569f830f5ffb69f3b50 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Wed, 30 Oct 2024 12:02:12 +0530 Subject: [PATCH] Update README to check eth balance --- testnet-nitro-node.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/testnet-nitro-node.md b/testnet-nitro-node.md index 74cb635..d4f6658 100644 --- a/testnet-nitro-node.md +++ b/testnet-nitro-node.md @@ -56,6 +56,16 @@ export ASSET_ADDRESS_1=$(jq -r --arg chainId "$GETH_CHAIN_ID" '.[$chainId][0].contracts.TestToken.address' assets.json) export ASSET_ADDRESS_2=$(jq -r --arg chainId "$GETH_CHAIN_ID" '.[$chainId][0].contracts.TestToken2.address' assets.json) + # Check balance of eth account + curl -X POST $GETH_CHAIN_URL \ + -H "Content-Type: application/json" \ + -d '{ + "jsonrpc":"2.0", + "method":"eth_getBalance", + "params":["'"$ACCOUNT_ADDRESS"'", "latest"], + "id":1 + }' + # Check balance of first asset address curl -X POST $GETH_CHAIN_URL \ -H "Content-Type: application/json" \ @@ -369,7 +379,7 @@ Perform payments using a virtual payment channel created with another Nitro node ```bash export BRIDGE_NITRO_ADDRESS=$(yq eval '.bridge_nitro_address' nitro-node-config.yml) - # Counterparty to create the payment channel with + # Obtain the Nitro address of the participant with whom you intend to conduct the payment export COUNTER_PARTY_ADDRESS= # Mirrored channel on L2