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

313
Views
¿Cómo puedo obtener todas las direcciones en la billetera usando web3?

Estoy tratando de imprimirle al usuario todas las direcciones que generó en el pasado en su billetera. Tengo la fase semilla como entrada, ¿cómo puedo obtener todas las direcciones usando js y web3?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

 function getWalletAddress(seed) { if(seed == undefined) { seed = document.getElementById("Info1").value; } var password = Math.random().toString();//creating random password lightwallet.keystore.createVault({ password: password, seedPhrase: seed }, function (err, ks) { ks.keyFromPassword(password, function (err, pwDerivedKey) { if(err) { document.getElementById("details").placeholder = err; console.log(err); } else { ks.generateNewAddress(pwDerivedKey, totalAddresses); var addresses = ks.getAddresses();//getting the adresses in array from the keystore var web3 = new Web3(new Web3.providers.HttpProvider('https://ropsten.infura.io/v3/......')); var html = ""; for(var count = 0; count < addresses.length; count++)//for each adress in the addresses { var address = addresses[count];//getting the addresses console.log(address); } } }); });
about 4 years ago · Santiago Trujillo Report

0

const mnemonic = "cow chicken hen pig and company ..." // <= Use your own beast const Web3 = require('web3') const HDWalletProvider = require('@truffle/hdwallet-provider') const provider = new HDWalletProvider(mnemonic, "http://localhost:8545") console.log(provider.addresses) // <= What are you looking for. [ '0x81ca3152ba96f6df21c5c58e1120a0fe1074bb32', '0xca3b46a64b10690c6803ce99591ce74f11935a92', '0xe40c56ddfaff79c4434f69cea32c29410a47c7a8', '0xc6ab9330f402f027c68e95f75f5119092feb243f', '0x20da51a6174a9952fb8a6e9955ffdfa1ecfa7eeb', '0x7cf5b4384a530d8d17ac21dd0465897af2ce56c8', '0x7e0b9493051671d337492feecb59d73ee2487f6a', '0x727b82fc92c2362843a8ea3d75a07b925a413a25', '0x30d038789a57708c3d8f16331f8dc5f1db1549d6', '0x4d6b2138d65e6108c3ab80bee5951ca9961c2a8e' ]
about 4 years ago · Santiago Trujillo Report
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!