diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-20 21:50:20 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-20 21:50:20 +0800 |
commit | a0f5ceddce1ae33f388891b1ceff1d88e0217f1c (patch) | |
tree | 4d666e5f7faf67b8e51badbb898111656b5baf48 | |
parent | 317194322897b0fc3b7cacaa1a825209a7d74d41 (diff) | |
download | dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar.gz dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar.bz2 dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar.lz dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar.xz dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.tar.zst dexon-sol-tools-a0f5ceddce1ae33f388891b1ceff1d88e0217f1c.zip |
Flesh out LedgerSubprovider usage example
-rw-r--r-- | packages/subproviders/README.md | 12 |
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 |