Skip to content

chirc20/chirc20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChiRC-20

This script helps you mint ChiRC-20 tokens on the Chia blockchain

Features

  • Mints ChiRC-20 tokens with customizable parameters
  • Uses the Chordinals library for Data URL encoding
  • Interacts with the Chia node via RPC commands
  • Supports optional dry-run mode to preview the minting process without submitting an actual transaction

Requirements

  • Python 3
  • A configured Chia node with RPC access
  • NFT wallet created, see Chia NFT Minting Docs (e.g. chia wallet nft create -n "chirc-20 nft wallet")
  • The ticker being minted must have been deployed in a previous block and not yet minted out for the mint to be considered valid

Usage

python chirc20.py mint <ticker> --wallet-id <wallet_id> --address <address> --fee <fee> [--amt <amt>] [--dryrun]

Arguments

    mint: Required command to execute (currently only supported option)
    <ticker>: Ticker symbol for the token (required)
    --wallet-id: Wallet ID of the NFT wallet in your Chia node (required, see chia wallet show)
    --address: Target address for the minted token to be sent to (required)
    --fee: Fee for the transaction in mojos (required)
    --amt (optional): Amount of tokens to mint (defaults to 1)
    --dryrun: Run in dry-run mode (no actual minting)

Example

python chirc20.py mint chordi --wallet-id 3 --address xch1qn98dq2xn27y... --fee 100000

Output

In normal mode, the script will construct and display the Chia RPC command for minting the token. If successful, it will confirm the minting process.

In dry-run mode, the script will display the constructed Chia RPC command and the final mint JSON object in a human-readable format, but it won't actually mint the token.

Additional Notes

This script utilizes temporary files to store intermediate JSON data during the minting process.

Ensure you have the necessary permissions to interact with the Chia node via RPC.

References

Chordifun

Chia NFT CLI Minting Guide

Disclaimer

This script is provided for informational purposes only. Please use it at your own risk and ensure you understand the implications of minting tokens on the Chia blockchain. No warranty is provided.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages