window.keplr) that can produce
an OfflineSigner for any supported chain.
Basic Integration
OfflineSigner, the rest of the code is
identical whether the keys come from a mnemonic, Keplr, Leap, or a Ledger
device. This is the power of the OfflineSigner abstraction.
Choosing the Signing Mode
Keplr and similar wallets offer multiple signer variants:getOfflineSigner is the right choice. It
synchronously returns a signer that implements both OfflineDirectSigner and
OfflineAminoSigner. Use getOfflineSignerAuto when you need async
auto-detection — it returns Promise<OfflineSigner> and automatically selects
Amino for Ledger-based accounts.