Home

Awesome

Your first spore-sdk example

Introduction

This is a hello world example of Spore SDK showing you how to create a spore on Nervos CKB.

From the example, you can learn how to:

  1. Generate a lock script and address with the CKB Default Lock
  2. Build your first spore creation transaction with the Spore SDK
  3. Sign the transaction with the CKB Default Lock

Run

Run in a web browser

You can follow the step-by-step tutorial on Spore Docs: Creating your first Spore.

Or, you can run and play with the example on StackBlitz.

Run in local

Clone the example to your local environment:

git clone https://github.com/sporeprotocol/spore-first-example.git

Install node dependencies via npm:

npm install

Run it:

npm run example