Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@petejkim/ledger-web3-subprovider
Advanced tools
Ledger Web3 subprovider with support for arbitrary chain IDs
A web3 subprovider for Ledger hardware wallets, with support for arbitrary chain IDs.
Create a HookedWalletSubprovider for Ledger devices.
getTransport
function (): Transport<any> gets lazily called each time the device is needed. It is a function that returns a Transport instance. You can typically give ()=>TransportU2F.create()
options
SubproviderOptions?import Web3 from "web3";
import createLedgerSubprovider from "@petejkim/ledger-web3-subprovider";
import TransportU2F from "@ledgerhq/hw-transport-u2f";
import ProviderEngine from "web3-provider-engine";
import RpcSubprovider from "web3-provider-engine/subproviders/rpc";
const engine = new ProviderEngine();
const getTransport = () => TransportU2F.create();
const ledger = createLedgerSubprovider(getTransport, {
accountsLength: 5,
networkId: 1 // supports arbitrary chain IDs
});
engine.addProvider(ledger);
engine.addProvider(new RpcSubprovider({ rpcUrl }));
engine.start();
const web3 = new Web3(engine);
Returns HookedWalletSubprovider
FAQs
Ledger Web3 subprovider with support for arbitrary chain IDs
The npm package @petejkim/ledger-web3-subprovider receives a total of 0 weekly downloads. As such, @petejkim/ledger-web3-subprovider popularity was classified as not popular.
We found that @petejkim/ledger-web3-subprovider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.