Getting Started
To get started, follow the steps below.1
Install SDK
Install the Spark SDK packages using your package manager of choice.
2
Setup Wallet
Create a wallet instance that will be used to interact with the Spark network.
wallet.ts
3
Start Building
That’s it—you can now start using the Spark TypeScript SDK.
app.ts
TypeScript Configuration
tsconfig.json
Create atsconfig.json file in your project root:
tsconfig.json
Package.json Scripts
Add TypeScript build scripts to yourpackage.json:
package.json
Core Wallet Operations
Initialize a Wallet
A wallet requires either a mnemonic or raw seed for initialization. Theinitialize() function accepts both. If no input is given, it will auto-generate a mnemonic and return it.