Mint

In Mint, it is sent to address 0x0000000000000000000000000000000000000000 as in deployment, and the JSON field is guaranteed to be modified to legal content. The nonce has not been used by itself, it has not exceeded the maximum total limit, and it has not exceeded a single number. It is recommended to use a timestamp.

In Mint, we need to specify some required fields.

KeyRequiredDescription

p

yes

protocol name,ierc-20, there is no difference between the two.

op

yes

mint

tick

yes

same as deployment.

amt

yes

Mint quantity, not exceeding the limit.

nonce

yes

unique value, timestamp is recommended.

Requires attention:

Do not mint multiple times in the same block.

For example:

// mint; send 0eth from self to 0x0000000000000000000000000000000000000000;
// The initiator of the transaction is the receiver
{
    "p":"ierc-20",
    "op":"mint", //mint operation
    "tick":"ethi",
    "amt":"1000", //mint amount
    "nonce":"1"
}

Last updated