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

156
Views
Cómo conectarse a varios servicios backend específicos en ethers.js

lo que quiero lograr

Quiero conectar con mis claves API a varios proveedores. Yo uso este código:

 export const provider = ethers.getDefaultProvider(NETWORK, { etherscan: ETHERSCAN_API_TOKEN, infura: { applicationId: INFURA_PROJECT_ID, applicationSecretKey: INFURA_SECRET_KEY }, pocket: { applicationId: POCKET_PORTAL_ID, applicationSecretKey: POCKET_SECRET_KEY }, });

Problema

Cuando cierro la sesión de la variable , obtengo esto:

 providerConfigs: [ { provider: [InfuraProvider], weight: 1, stallTimeout: 2000, priority: 1 }, { provider: [EtherscanProvider], weight: 1, stallTimeout: 750, priority: 1 }, { provider: [AlchemyProvider], weight: 1, stallTimeout: 2000, priority: 1 } ],

Así que se ignoró la clave de pocket y AlchemyProvider aparece de la nada, lo que me hace pensar que de esta manera no funciona. ¿Hay otro?

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!