Skip to main content
Generates a new single-use deposit address for receiving Bitcoin funds. Returns a Bitcoin address (not a Spark Address) that starts with “bc1p”.

Method Signature

async getSingleUseDepositAddress(): Promise<string>

Returns

address
string
required
A Bitcoin address for depositing funds

Example

const depositAddress = await wallet.getSingleUseDepositAddress();
console.log("Deposit Address:", depositAddress);