Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.spark.money/llms.txt

Use this file to discover all available pages before exploring further.

Gets the Layer 1 Bitcoin address derived from the wallet’s identity key for token operations.

Method Signature

async getTokenL1Address(): Promise<string>

Returns

address
string
required
A P2WPKH Bitcoin address derived from the wallet’s identity public key

Example

const l1Address = await wallet.getTokenL1Address();
console.log("Token L1 address:", l1Address);