2020-06-09 23:56:58 -04:00
|
|
|
-----
|
|
|
|
|
2020-07-03 01:54:56 -04:00
|
|
|
Documentation: [html](https://docs.ethers.io/)
|
2020-06-09 23:56:58 -04:00
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
|
|
Experimental
|
|
|
|
============
|
|
|
|
|
|
|
|
BrainWallet
|
|
|
|
-----------
|
|
|
|
|
|
|
|
#### *BrainWallet* . **generate**( username , password [ , progressCallback ] ) => *[BrainWallet](/v5/api/experimental/#experimental-brainwallet)*
|
|
|
|
|
|
|
|
Generates a brain wallet, with a slightly improved experience, in which the generated wallet has a mnemonic.
|
|
|
|
|
|
|
|
|
|
|
|
#### *BrainWallet* . **generateLegacy**( username , password [ , progressCallback ] ) => *[BrainWallet](/v5/api/experimental/#experimental-brainwallet)*
|
|
|
|
|
2020-11-22 23:07:13 -05:00
|
|
|
Generate a brain wallet which is compatible with the ethers v3 and earlier.
|
2020-06-09 23:56:58 -04:00
|
|
|
|
|
|
|
|
|
|
|
EIP1193Bridge
|
|
|
|
-------------
|
|
|
|
|
|
|
|
NonceManager
|
|
|
|
------------
|
|
|
|
|
|
|
|
#### **new ****NonceManager**( signer )
|
|
|
|
|
|
|
|
Create a new NonceManager.
|
|
|
|
|
|
|
|
|
|
|
|
#### *nonceManager* . **signer** => *[Signer](/v5/api/signer/#Signer)*
|
|
|
|
|
|
|
|
The signer whose nonce is being managed.
|
|
|
|
|
|
|
|
|
|
|
|
#### *nonceManager* . **provider** => *[Provider](/v5/api/providers/provider/)*
|
|
|
|
|
|
|
|
The provider associated with the signer.
|
|
|
|
|
|
|
|
|
|
|
|
#### *nonceManager* . **setTransactionCount**( count ) => *void*
|
|
|
|
|
|
|
|
Set the current transaction count (nonce) for the signer.
|
|
|
|
|
2020-11-22 23:07:13 -05:00
|
|
|
This may be useful in interacting with the signer outside of using this class.
|
2020-06-09 23:56:58 -04:00
|
|
|
|
|
|
|
|
2021-02-08 15:26:10 -05:00
|
|
|
#### *nonceManager* . **incrementTransactionCount**( [ count = 1 ] ) => *void*
|
2020-06-09 23:56:58 -04:00
|
|
|
|
|
|
|
Bump the current transaction count (nonce) by *count*.
|
|
|
|
|
2020-11-22 23:07:13 -05:00
|
|
|
This may be useful in interacting with the signer outside of using this class.
|
2020-06-09 23:56:58 -04:00
|
|
|
|
|
|
|
|