Get Other Account Info
In this section you will learn how to queries the account balance of another account on the Hedera network using the provided account credentials and the Hedera JavaScript SDK.
Prerequisites
Step 1 : Imports
const {
Client,
AccountBalanceQuery,
PrivateKey
} = require("@hashgraph/sdk");
require('dotenv').config({ path: 'Account/.env' });Step 2 : Environment Variables Retrieval
Step 3 : Main Function
Step 4: Execution
Last updated