Getting Started
To get started, follow the steps below.Setup Wallet
Create a wallet instance that will be used to interact with the Spark network.
wallet.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.