MODE-20
The Basics
The mode-20 is a token inscription protocol on Mode. The protocol's state is determined by sequentially indexing all Mode transactions.
The mode-20 protocol employs a fungible token standard with an account-balance model to track the balance of addresses for each token ticker. For mint operations, the minted amount of tokens is added to the minter's address balance corresponding to the ticker. For transfer operations, the amount of tokens is subtracted from the sender's balance and added to the receiver's balance.
mode-20 start block height: 7892818
Protocol Specifications
Deploy
Note: Only deploy operations initiated by Externally Owned Accounts (EOAs) are considered valid.
{
"p": "mode-20",
"op": "deploy",
"tick": "modes",
"max": "21000000",
"lim": "1000"
}
Param | IsRequired | Description |
---|---|---|
p | Yes | Protocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20' |
op | Yes | Operation, strictly equal to 'deploy' |
tick | Yes | Ticker: Token ticker supports a lenght of 2 to 18 characters, allowing only the 26 alphabet letters, case-insensitive. |
max | Yes | Token total supply, limited to 2^53-1. |
lim | Yes | Limit Per Mint |
Mint
Note: Only mint operations initiated by Externally Owned Accounts (EOAs) are considered valid.
{
"p": "mode-20",
"op": "mint",
"tick": "modes",
"amt": "1000"
}
Param | IsRequired | Description |
---|---|---|
p | Yes | Protocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20' |
op | Yes | Operation, strictly equal to 'mint' |
tick | Yes | Token ticker |
amt | Yes | Mint quantity, not exceeding the limit. |
Transfer
{
"p": "mode-20",
"op": "transfer",
"tick": "modes",
"amt": "500"
}
Param | IsRequired | Description |
---|---|---|
p | Yes | Protocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20' |
op | Yes | Operation, strictly equal to 'transfer' |
tick | Yes | Token ticker |
amt | Yes | Amount to transfer: States the amount of the mode-20 to transfer. |
Initiate a transaction with the above rules as data, and the to address of the transaction will be the recipient of mode-20 tokens.
Updated 7 months ago