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 updated
Was this helpful?