Hello
I would like to get balance in testnet.
const newaddress = new Address("AXpNeebiUZZQxLff6czjpHZ3Tftj8go2TF");
console.log("newAddress: ", newaddress);
const nodeUrl = "http://polaris1.ont.io:20334"; // Testnet
const rest = new RestClient(nodeUrl);
console.log("rest: ", rest);
let balance = await rest.getBalance(newaddress);
console.log("balance: ", balance);
But the above error is occured.
How can I fix it?
Hello I would like to get balance in testnet. const newaddress = new Address("AXpNeebiUZZQxLff6czjpHZ3Tftj8go2TF"); console.log("newAddress: ", newaddress); const nodeUrl = "http://polaris1.ont.io:20334"; // Testnet const rest = new RestClient(nodeUrl); console.log("rest: ", rest); let balance = await rest.getBalance(newaddress); console.log("balance: ", balance); But the above error is occured. How can I fix it?