Available SDKs
Getting Started
To get started with the Spark API, follow the steps below.Install the SDK
Install the SDK package using your package manager of choice.For the Wallet SDK:For the Issuer SDK:
Initialize a Wallet
Create a wallet instance to start interacting with the Spark network.For the Wallet SDK:For the Issuer SDK:
Error Handling
The SDK throws typed errors that you can catch and handle appropriately:| Error Type | When Thrown |
|---|---|
SparkValidationError | Invalid parameters, out-of-range values, format errors |
SparkRequestError | Network failures, API errors, timeout |
SparkError | General SDK errors, configuration issues |
Use AI Tools with These Docs
Our documentation is optimized for AI coding assistants like Cursor, Claude, and ChatGPT.| Resource | URL |
|---|---|
| Full docs (LLM-optimized) | docs.spark.money/llms-full.txt |
| Docs index | docs.spark.money/llms.txt |
| Any page as Markdown | Append .md to any URL |
llms-full.txt URL into your AI assistant’s context for complete knowledge of Spark’s APIs and best practices.