1.2.0 • Published 3 months ago
web3-ledgerhq-frame-connector v1.2.0
⚠️ DEPRECATION WARNING ⚠️
The ledger connector for web3-react is not maintained anymore.
The ledger connector for wagmi can be found in the reef-knot package and continues to be supported and developed there.
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();