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 |
---|---|---|
accountId | âś… | The ID of the Bitcoin account for which the xPub is to be retrieved. |
walletHandler used | note |
---|---|
bitcoin.getXPub | Should 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.