1.1.0 • Published 10 months ago
web3-ledgerhq-frame-connector v1.1.0
Ledger iframe connector
Connector for web3-react based on @ledgerhq/iframe-provider
Install
yarn add web3-ledgerhq-frame-connector
Arguments
Connector has the same arguments as IFrameEthereumProvider as well an optional
supportedChainIds
to support testnets, defaults to Ethereum Mainnet only.
new LedgerHQFrameConnector({
targetOrigin?: string;
timeoutMilliseconds?: number;
supportedChainIds?: number[]
});
Example
import { LedgerHQFrameConnector } from 'web3-ledgerhq-frame-connector';
const LedgerHQFrame = new LedgerHQFrameConnector();