Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ququzone/ckb-udt-cli
https://github.com/ququzone/ckb-udt-cli
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ququzone/ckb-udt-cli
- Owner: ququzone
- Created: 2020-04-28T14:37:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T12:36:52.000Z (over 4 years ago)
- Last Synced: 2024-08-03T02:09:02.321Z (3 months ago)
- Language: Go
- Size: 76.2 KB
- Stars: 8
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-nervos-ckb - CKB UDT CLI: Command line tool to create SUDT tokens
README
ckb udt cli
===========## Build
```bash
export GOPROXY=https://goproxy.io
go mod download
go build .
```## Usage
### Issue
```bash
./ckb-udt-cli issue -c config.yaml -k YOUR_PRIVATE_KEY -a AMOUNT
```### Create anyone can pay cell
```bash
./ckb-udt-cli create-cell -c config.yaml -k YOUR_PRIVATE_KEY -u UUID
```### Transfer
```bash
./ckb-udt-cli transfer -c config.yaml -k YOUR_PRIVATE_KEY -u UUID -t RECIPIENT_ADDRESS -a AMOUNT
```### Balance
```bash
./ckb-udt-cli balance -c config.yaml -u UUID -a ADDRESS
```## Example data
https://explorer.nervos.org/aggron/sudt/0xe3be4fb98ec914886c6525abac97e1f8769c59492636a1d35955e9163ef46efa
uuid: `0x94bbc8327e16d195de87815c391e7b9131e80419c51a405a0b21227c6ee05129`