Operations
Designed to be flexible and adaptable to various use cases
Operations of ORC-20 comprise the basic operations including deploy, mint, transfer, burn, upgrade, and custom operations. You can add new keys to the standard operations to introduce constraints, various behaviours, or new operations.
Operations definition
Deploy
p
Yes
“orc-20”
Protocol: help other systems identify and process ORC-20 operations.
op
Yes
“deploy”
Operation: type of operation
params
tick
Yes
Ticker: the symbol for the ORC-20, with a character length not restricted but not exceeding 255 characters. The TID (Token ID) serves as the unique identifier differentiating between tokens.
params
max
Yes
Max supply: set max supply of the orc-20, max value of the numeric field is unit64_max.
params
lim
No
Mint limit: max amount can be minted per inscription, the value cannot exceed the specified maximum limit.
params
dec
No
Decimals: set decimal precision, default to 18, an integer within the range of 0 to 18.
params
ug
No
[“true”, ”false”]
Upgradable: whether deployer is allowed to upgrade token information, true or false, default as false.
params
mp
No
[“true”, ”false”]
Mint Protected: whether only deployer is allowed to mint, true or false, default as false.
params
tid
No
inscription ID
Token ID: identifier of the ORC-20, the inscription ID where the token was deployed. This field is unnecessary during deployment and, if provided, will be considered invalid. It should be determined by the actual inscription number.
Example:
Upgrade
p
Yes
“orc-20”
Protocol: help other systems identify and process ORC-20 operations.
op
Yes
“upgrade”
Operation: type of operation
params
tick
Yes
Ticker: symbol of the ORC-20
params
tid
Yes
Token ID: identifier of the ORC-20, the inscription ID where the token is deployed.
params
max
No
Max supply: increase max supply of the ORC-20.
params
lim
No
Limit: max amount can be minted per inscription, the value cannot exceed the specified maximum limit.
params
ug
No
[“true”, ”false”]
Upgradable: whether deployer is allowed to upgrade token information, true or false, default as true.
params
mp
No
[“true”, ”false”]
Mint Protected: whether only deployer is allowed to mint, true or false, default as false
Example:
Transferring the inscription is a necessary step for asserting ownership, confirming that the upgrade event is initiated by the wallet owner. This is because anyone can mint the inscription on your behalf, but only you have the authority to transfer it.
Mint
p
Yes
“orc-20”
Protocol: help other systems identify and process ORC-20 operations.
op
Yes
“mint”
Operation: type of operation
params
tick
Yes
Ticker: symbol of the ORC-20
params
tid
Yes
Token ID: identifier of the ORC-20, the inscription ID where the token is deployed.
params
amt
Yes
Amount to mint: it states the amount of the ORC-20 to mint. It needs to be less than or equal to "lim".
Example:
Burn
p
Yes
“orc-20”
Protocol: help other systems identify and process ORC-20 operations.
op
Yes
“burn”
Operation: type of operation
params
tick
Yes
Ticker: symbol of the ORC-20
params
tid
Yes
Token ID: identifier of the ORC-20, the inscription ID where the token is deployed.
params
amt
Yes
Amount to burn: it states the amount of the ORC-20 to burn.
Example:
Transfer
p
Yes
“orc-20”
Protocol: help other systems identify and process ORC-20 operations.
op
Yes
“transfer”
Operation: type of operation
params
tick
Yes
Ticker: symbol of the ORC-20
params
tid
Yes
Token ID: identifier of the ORC-20, the inscription ID where the token is deployed.
params
amt
Yes
Amount to transfer: it states the amount of the ORC-20 to transfer.
Example:
Last updated