API Reference
initializeLedgerProvider(options)
Initializes the Ledger Wallet Provider and injects the UI components into the DOM.
See the Configuration page for detailed parameter documentation.
Returns a cleanup function to remove the provider and UI components.
LedgerEIP1193Provider
The main provider class that implements the EIP-1193 standard.
Methods
request({ method, params })- Make JSON-RPC requestson(event, listener)- Listen to provider eventsremoveListener(event, listener)- Remove event listenersisConnected()- Check connection statusdisconnect()- Disconnect from the provider
Supported Methods
eth_requestAccounts- Request user accountseth_accounts- Get current accountseth_chainId- Get current chain IDeth_sendTransaction- Send and sign transactionseth_signTransaction- Sign transactionseth_signRawTransaction- Sign raw transactionseth_sign- Sign messagespersonal_sign- Sign personal messageseth_sendRawTransaction- Send raw transactionseth_signTypedData- Sign typed data (EIP-712)eth_signTypedData_v4- Sign typed data v4 (EIP-712)eth_getBalance- Get account balance (delegated to core)
Events
accountsChanged- Fired when accounts changechainChanged- Fired when chain changesconnect- Fired when provider connectsdisconnect- Fired when provider disconnects