Returns a reusable Bitcoin address for the SparkWallet that can be used to receive deposits multiple times. Currently only one static deposit address is supported per wallet.
If a static deposit address already exists for this wallet, calling this method again will return the existing address (not create a new one).
Do not call this method concurrently. Concurrent calls before an address exists can create multiple addresses. Always await the first call before making another.
Method Signature
async getStaticDepositAddress(): Promise<string>
Returns
A reusable Bitcoin address for depositing funds
Example
const staticAddress = await wallet.getStaticDepositAddress();
console.log("Static deposit address:", staticAddress);
// Calling again returns the same address
const sameAddress = await wallet.getStaticDepositAddress();
console.log(staticAddress === sameAddress); // true