https://github.com/code-monad/ckb-drop
https://github.com/code-monad/ckb-drop
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-monad/ckb-drop
- Owner: code-monad
- Created: 2023-09-12T21:36:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-12T21:38:41.000Z (over 2 years ago)
- Last Synced: 2024-12-27T21:42:12.810Z (about 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spore Drop
A tiny agent shows how to program an Airdrop agent using CKB's Rust sdk.
It will randomly pick a image fomr [res/](./res/) to make it a Spore and send to the receiver.
## Procedure
Just like other ckb development ,the procedure of this program can be described as:
### 1. Searching.
It searches for the on_chain cells, using CkbRpcClient.
### 2. Filtering
Filter cells you found with rules specified(check [rules.rs](src/rules.rs))
### 3. Processing
Process data contains in cell.
### 4. Build Spore Data
Build the spore data like in [utils.rs](src/utils.rs)
### 5. Build Transaction
Build a transaction and send it.