Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

web3.eth.accounts.wallet typings and documentation #2591

Closed
winter38 opened this issue Mar 27, 2019 · 2 comments · Fixed by #2592
Closed

web3.eth.accounts.wallet typings and documentation #2591

winter38 opened this issue Mar 27, 2019 · 2 comments · Fixed by #2592
Labels
Bug Addressing a bug

Comments

@winter38
Copy link

Description

I am trying update web3 lib from web3.1.0.0-beta.33 to current version (web3.js: 1.0.0 - beta.50).

web3.eth.accounts.wallet - i can't figure that class.
in docs - https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#wallet - there is length
in git - https://github.com/ethereum/web3.js/blob/1.0/packages/web3-eth-accounts/src/models/Wallet.js - there is accountsIndex
in typings - there nothing except methods

in old code i used

web3.eth.accounts.wallet.load(password, keyname)
if (web3.eth.accounts.wallet.length){
   // any check
}

Versions

  • web3.js: 1.0.0 - beta.50
@nivida nivida added the Bug Addressing a bug label Mar 27, 2019
@nivida
Copy link
Contributor

nivida commented Mar 27, 2019

Thanks for opening this issue! I'll fix and release it asap.

@davidbongcc
Copy link

Does Web3.py have this similar function(web3.eth.accounts.wallet) in the library? How can I create a wallet using web3.py?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants