Flesh out LedgerSubprovider usage example
This commit is contained in:
parent
3171943228
commit
a0f5ceddce
@ -14,7 +14,17 @@ yarn add @0xproject/subproviders
|
||||
Simply import the subprovider you are interested in using:
|
||||
|
||||
```javascript
|
||||
import {LedgerSubprovider} from '@0xproject/subproviders';
|
||||
import {
|
||||
ledgerEthereumBrowserClientFactoryAsync as ledgerEthereumClientFactoryAsync,
|
||||
LedgerSubprovider,
|
||||
} from '@0xproject/subproviders';
|
||||
|
||||
const ledgerSubprovider = new LedgerSubprovider(
|
||||
networkId,
|
||||
ledgerEthereumClientFactoryAsync,
|
||||
);
|
||||
|
||||
const accounts = await ledgerSubprovider.getAccountsAsync();
|
||||
```
|
||||
|
||||
### Subproviders
|
||||
|
Loading…
x
Reference in New Issue
Block a user