Alby Developer Guide
Alby Browser Extension APIs
Ask or search…
K
Links
Comment on page

getAddress

Gets the first address from your bitcoin account
Method
async function getAddress(): {
address: string,
derivationPath: string,
index: number,
publicKey: string
}
Response
The first address of your bitcoin account generated by your master key, including the public key, index and derivation path.
Code Example
await window.webbtc.enable();
const address = await window.webbtc.getAddress();
Last modified 3mo ago