aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'packages/subproviders/README.md')
-rw-r--r--packages/subproviders/README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/subproviders/README.md b/packages/subproviders/README.md
index 2d7483b16..2baa73990 100644
--- a/packages/subproviders/README.md
+++ b/packages/subproviders/README.md
@@ -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