Skip to Content
We're improving our docs. Share your experience and help shape what comes next.

overview

The Bitcoin handler allows the server to interact with Bitcoin accounts.
Specifically, you can retrieve the extended public key (xPub) of a Bitcoin account.
This is useful for deriving Bitcoin addresses without revealing the private key.

request handlers:

“bitcoin.getXPub” - Get Extended Public Key (xPub)

parameter (in req.params)required?note
accountIdThe ID of the Bitcoin account for which the xPub is to be retrieved.
walletHandler usednote
bitcoin.getXPubShould retrieve the xPub of a particular bitcoin account
  • Gets the xPub of a bitcoin account with bitcoin.getXPub walletHandler
  • Returns: A promise that resolves with the xPub as a string.
Last updated on
Ledger
Copyright © Ledger SAS. All rights reserved. Ledger, Ledger Stax, Ledger Flex, Ledger Nano, Ledger Nano S, Ledger OS, Ledger Wallet, [LEDGER] (logo), [L] (logo) are trademarks owned by Ledger SAS.