How Do I Approve Delegated KIP-7 Token Transfer?
Hello. This is Klaytn API Service team.
Please refer to the following information about how to approve delegated KIP-7 token transfer.
1. To make API calls, set basic Authorization in your preferred tool. Login by using 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. Go to the KIP-7 API document.
Click KIP-7 and click Delegated KIP-7 token transfer. At the top of the page, it is said that “you need to approve token transfers in advance.” Click the blue URL next to the POST.
3. You’ll see that the contract address or contract alias is required.
4. Login into Console on the Console page.
Then, click Service → KIP-7 → Contracts in order. When you click the contract you wanted to check in the list of contracts, you can see the contract alias and contract address.
5. Go back to the document and click the URL next to POST.
6. Delete the curly brackets in the URL and put the contract address or contract alias you checked in the Console page in the deleted part. Then continue forward to put it in your preferred tool.
7. Put x-chain-id (1001 or 8217) in Header parameters.
8. In your tool, type your default contract deployer account (optional), the Klaytn account address to approve delegated token transfer , and the approved token amount (in hexadecimal) in JSON format.
9. You can check the sample responses in the document.
10. You'll see that you approved KIP-7 token transfer successfully in responses.
11. After you complete approving KIP-7 token transfer, go back to the Delegated KIP-7 token transfer document.
12. Login into Console on the Console page. Then, click Service → KIP-7 → Contracts in order. When you click the contract you wanted to check in the list of contracts, you can see the contract alias and contract address.
13. Go back to the document again and copy the URL next to POST.
14. Delete the curly brackets in the URL and put the contract address or contract alias you checked in the Console page in the deleted part. Then continue forward to put it in your preferred tool.
15. Put x-chain-id (1001 or 8217) in Header parameters.
16. In your tool, type a Klaytn account address to send tokens, a Klaytn account address of the owner delegating the token transfer, a Klaytn account address to receive tokens, and the transfer amount (in hexadecimal) in JSON format.
17. You can check the sample responses in the document.
For any additional questions, you may select Inquiry Registration above the KAS Help Center where you can register your inquiry.
Thank you.
Klaytn API Service team.