deploy

Parameters

Create a new KRC-20 token using the "deploy" function.

{"p": "krc-20","op": "deploy","tick": "kasp","max": "21000000","lim":"1000","to":"kaspa:..."}
Key
Required?
Description

p

Yes

Protocol Header. Must be "krc-20"

op

Yes

Operation: Type of event (Deploy, Mint, Transfer)

tick

Yes

Ticker: 4 to 6 letter identifier of the krc-20

max

Yes

max supply of the krc-20, including decimal

lim

Yes

The balance obtained for each mint, including decimal

to

No

The deployer address of the KRC-20 token and receiver address of the pre allocated token(If pre is provided)

dec

No

Decimal. Default to 8

pre

No

The amount of tokens allocated to a particular address after deployment.

  • if pre > max, only max amount of tokens will allocate to toaddress

  • To deploy a KRC-20 token, the transaction fee(or gas fee) paid should not be less than 1000 KAS.

  • If to field is not configured, it defaults to the transaction sender address.

Last updated