I got an error message while using Free tier. What shall I do here.
Hi, this is Klaytn API Service Help Center.
Regarding the error message that you encountered while using free tier, we kindly refer to the information below for the solution.
KAS currently provides 1,000 API requests per day for our free-tier clients. But for APIs that require a transaction like “Transfer”, you have to set the fee payment option.
Otherwise, you may see an error message like below, even if you have requests left:
start
ErrorResponse {
_code: 1130159,
_message: ‘a free-tier user does not have access to the API’,
_requestId: ‘15722ca1-2d8f-4e37-9060-68988b879ff9’
}
end
There are two things you can do to prevent this:
(1) Using a KAS Global Fee Payer Account
You need to at least have a Starter plan.
(2) Using a User Fee Payer Account
You can update the options of the contract to use an account with sufficient balance.
{
"options": {
"enableGlobalFeePayer": false,
"userFeePayer": {
"krn": "krn:1001:wallet:20bab367-141b-439a-8b4c-ae8788b86316:feepayer-pool:default",
"address": "0xd6905b98E4Ba43a24E842d2b66c1410173791cab"
}
}
}
To find out more, please refer to the Fee Payer Option section of the KAS Reference Documentation.
If you have further inquiries, contact us via Inquiry Registration in the upper right corner of the Help Center page.
Thank you.
Klaytn API Service Help Center