How Do I Deploy a Contract In Order To Mint KIP-17 Token?
Hello. This is Klaytn API Service team.
Please refer to the following information about deploying a KIP-17 contract.
There are two ways to deploy a contract; First, deploying it on the Console website. Second, deploying it by making a KIP-17 API call. Please refer to the instruction below for deploying a contract on the Console page, which refers to our first option.
[For Deploying a Contract On a Free Plan]
Before deploying a contract, it is required to set up User Fee payer and receive test KLAY, which is a prerequisite for deploying a contract. For detailed instructions, please refer to the How To Use Klaytn API Service Baobab And How To Receive KLAY For Testing page.
1. To make API calls, set basic Authorization in your preferred tool. Login by using an Access Key ID(Username) and Secret Access Key (Password) that you were given during your Credential process on the Console website.
(Please refer to the Authorization Setup guidelines page about how to create a KAS API Authorization key.)
2. Click KAS KIP-17 API Docs. Then click KIP-17 and click Deploy KIP-17 Contract.
3. Copy the URL next to POST.
4. Paste the URL in your preferred tool.
5. In your tool, type a contract alias that can be used instead of a contract address, a contract name, a token symbol, a decimal value which is the number of digits that come after the decimal place, and finally the amount of tokens to create in JSON format.
6. For Fee-payer options, go to Fee Payer Options Document.
7. Out of four types of paying transaction fees, refer to the second type. (Please note that Free plan users cannot use the Global Fee Payer service. We ask for your understanding regarding this matter.)
8. To set up User Fee-payer, type the Fee-payer account that received the five test KLAY during a process of the prerequisite and the Fee Payer Pool that has the account.
9. You can check the sample responses in the document.
9. After making an API call, you’ll see that your contract is officially deployed.
[For Deploying a Contract On a Paid Plan]
Please follow number 1 to 5 of the instruction of deploying a contract, which is mentioned above and then refer to the instruction below for the next step.
1. Check 4 types of paying transaction fees. Then choose among options 1, 3, or 4.
2. Choose your preferred payment option and then input into the tool in JSON format.
(Example of Option 1)
For any additional questions, you may select Inquiry Registration above theKAS Help Center where you can register your inquiry.
Thank you.
Klaytn API Service team.