Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Obteniendo un error al intentar conectarse a la red de Hedera. ¿Cómo puede estar el error en node_modules?

Este es el error `\node_modules@hashgraph\sdk\lib\channel\NodeChannel.cjs:92 }, 10_000);

Solo estoy configurando una conexión básica para obtener el saldo de mi cuenta. Aquí está mi código:

 const { Client, AccountBalanceQuery } = require("@hashgraph/sdk"); require("dotenv").config(); async function main() { // Grab your Hedera account ID and Key const myAccountId = process.env.MY_ACCOUNT_ID; const myPrivateKey = process.env.MY_PRIVATE_KEY; // throw an error if you couldn't get the id if (myAccountId == null || myPrivateKey == null ) { throw new Error("Environment variables must be present"); } console.log("I made it this far"); // connect to the hedera network const client = Client.forTestnet(); client.setOperator(myAccountId, myPrivateKey); // Now the connection to the hedera network is established // get your balance const balance = await new AccountBalanceQuery() .setAccountId(myAccountId) .execute(client) console.log(`${myAccountId} balance = ${balance.value()}`); } main();
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!