Wallet
Last updated
Last updated
Wallet to manager accounts.
Kind: global class
.has(address) ⇒ boolean
.delete(address) ⇒ boolean
.set(address, account) ⇒ any
.get(address) ⇒ Account
.addPrivateKey(privateKey) ⇒ PrivateKeyAccount
.addRandom([entropy]) ⇒ PrivateKeyAccount
.addKeystore(keystore, password) ⇒ PrivateKeyAccount
Param | Type |
---|---|
Set network id
Kind: instance method of Wallet
boolean
Check if address exist
Kind: instance method of Wallet
boolean
Drop one account by address
Kind: instance method of Wallet
Drop all account in wallet
Kind: instance method of Wallet
any
Kind: instance method of Wallet
Account
Kind: instance method of Wallet
PrivateKeyAccount
Kind: instance method of Wallet
PrivateKeyAccount
Kind: instance method of Wallet
PrivateKeyAccount
Kind: instance method of Wallet
Param | Type |
---|---|
Param | Type |
---|---|
Param | Type |
---|---|
Param | Type | Description |
---|---|---|
Param | Type |
---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
Param | Type | Description |
---|---|---|
networkId
number
networkId
number
address
string
address
string
address
any
Key of account, usually is address
account
any
Account instance
address
string
privateKey
string
| Buffer
Private key of account
[entropy]
string
| Buffer
Entropy of random account
keystore
object
Keystore version 3 object.
password
string
| Buffer
Password for keystore to decrypt with.