Here we provide several examples which are minimum viable snippets designed for a Node environment, each showcasing a specific feature implemented using the Spore SDK.
These examples serve as practical guides for developers, demonstrating how to implement specific features in a straightforward manner, for instance, how to create a spore by a transaction with Spore SDK. And for those who are looking for documentation on how to develop a fully functional application, refer to: Spore Demos.
spore-first-example
is a hello world example for Spore SDK, showing you how to upload an image file and create a spore on Nervos CKB in a split second. This is a well-suited code example for beginners to learn the very basics of Spore Protocol.
- Follow the tutorial at Creating your first spore
- Run the example on StackBlitz
- GitHub repository
CKB Default Lock is the most commonly used lock script on Nervos CKB, also a great starting point for beginners due to its simplicity. You can create private assets with the CKB Default Lock for safeguarding ownership of your private assets.
Anyone-can-pay (ACP) lock can be unlocked by anyone without signature verification and accepts any amount of CKB/UDT payment from the unlocker. You can create public clusters with the Anyone-can-pay lock and benefit from charging other users for creating spores within the public cluster.
Omnilock is a universal and interoperable lock script supporting various blockchains (Bitcoin, Ethereum, EOS, etc.) verification methods and extensible for future additions. Omnilock also supports a compatible anyone-can-pay mode, which allows you to create public clusters using it. You can create private/public spores and clusters with the Omnilock.