From a0f5ceddce1ae33f388891b1ceff1d88e0217f1c Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 20 Dec 2017 14:50:20 +0100 Subject: Flesh out LedgerSubprovider usage example --- packages/subproviders/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages') 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 -- cgit v1.2.3