xiaobolei / tokens

btc tokens (xrc-20)

Home Page:https://blvrg.github.io/tokens/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BTC Tokens (XRC-20)

Functions

Deploy

  • token:deploy|name|supply|max_mint|image

Mint

  • token:mint|name|amount

Variables

  • name - The name of the token
    • Alphanumberic OR
    • Unicode symbol u+xxxx
  • supply - The total supply amount
  • max_mint - The max mint amount
  • image
    • Base64 encoded image OR
    • Numeric asset name ( eg. A7337447728884561000)
  • amount - The amount to mint

No commas on supply, max_mint & amount

Deploy

actions -> create token

When deploying a new token, do so with quantity = 1.

Example

token:deploy|example|1000|10|A7337447728884561000

Mint

actions -> create token

  • Mint tokens with amount less than or equal to max_mint.
  • amount in the token mint function should match quantity of token mint

Example

token:mint|example|10 with quantity = 10

Experimental

Wrapped SRC-20

actions -> create token

Format - token:wrap|tick|AXXXXXXXXXXXXXXXXXXXX

Example - token:wrap|kevin|A18339685096327903682

Ensure quanity is equal to the amount of the SRC-20 tokens being wrapped.

Note Only tokens minted to wallets that hold the corresponding SRC-20 are considered valid

Why

  • BTC Based

    • wSRC-20 tokens live on BTC just like SRC-20
    • Verification of ownership via XCP
  • Once tokens are wrapped they can be

    • Listed for sale in a dispenser
    • Traded for other tokens

About

btc tokens (xrc-20)

https://blvrg.github.io/tokens/


Languages

Language:HTML 100.0%