Operations

Basic SARC-20 operations consist of deploy, mint, and transfer events.

Deploy

To deploy an SARC-20 token, you need to include the following keys with corresponding values in your data. Make sure to set the 'from' and 'to' addresses in the transaction as your own address.

Key
Required
Description

p

yes

Protocol Identifier: sarc-20

tick

yes

Ticker: 4 letter identifier of the SARC-20

op

yes

deploy

max

yes

Max Supply

lim

yes

Mint Limit: max amount can be minted per inscription

Example:

data:,{"p":"sarc-20","op":"deploy","tick":"sarc","max":"21000000","lim":"1000"}

Mint

To mint an SARC-20 token, you need to include the following keys with corresponding values in your data. Make sure to set the 'from' and 'to' addresses in the transaction as your own address.

Key
Required
Description

p

yes

Protocol Identifier: sarc-20

tick

yes

Ticker: 4 letter identifier of the SARC-20

op

yes

mint

amt

yes

Mint Amount: specify the amount to mint, cannot exceed the mint limit set in deploy event

Example:

data:,{"p":"sarc-20","op":"mint","tick":"sarc","amt":"1000"}

Transfer

To transfer an SARC-20 token, you need to include the following keys with corresponding values in your data. Make sure to set 'to' address as the recipient.

Key
Required
Description

p

yes

Protocol Identifier: sarc-20

tick

yes

Ticker: 4 letter identifier of the SARC-20

op

yes

transfer

amt

yes

Mint Amount: specify the amount to transfer, cannot exceed the token amount you hold

Example:

data:,{"p":"sarc-20","op":"transfer","tick":"sarc","amt":"1000"}

Last updated