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”.
CRITICAL: Single-use addresses are consumed after the first deposit. Any subsequent deposits to a used address will be permanently lost. For most use cases, prefer getStaticDepositAddress() which is reusable and safer.

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);