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.

Cleans up connections and aborts any active streams for the SparkWallet.

Method Signature

async cleanupConnections(): Promise<void>

Returns

This method returns nothing and resolves to void.

Example

await wallet.cleanupConnections();
console.log("Connections cleaned up");