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

Logo

Your bitcoin & nostr companion / from ๐Ÿ with ๐Ÿงก