ontio / ontology-ts-sdk

Comprehensive TypeScript library for the Ontology blockchain.
GNU Lesser General Public License v3.0
64 stars 39 forks source link

UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT 45.43.63.117:20334 #224

Open vigorousdeveloper opened 2 years ago

vigorousdeveloper commented 2 years ago

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?