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"
}

ParamIsRequiredDescription
pYesProtocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20'
opYesOperation, strictly equal to 'deploy'
tickYesTicker: Token ticker supports a lenght of 2 to 18 characters, allowing only the 26 alphabet letters, case-insensitive.
maxYesToken total supply, limited to 2^53-1.
limYesLimit 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"
}

ParamIsRequiredDescription
pYesProtocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20'
opYesOperation, strictly equal to 'mint'
tickYesToken ticker
amtYesMint quantity, not exceeding the limit.

Transfer

{ 
  "p": "mode-20",
  "op": "transfer",
  "tick": "modes",
  "amt": "500"
}

ParamIsRequiredDescription
pYesProtocol: Helps other indexer identify and process mode-20 events, strictly to 'mode-20'
opYesOperation, strictly equal to 'transfer'
tickYesToken ticker
amtYesAmount 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.