How to Check KLAY Balance Using KAS API
Hello. This is Klaytn API Service team.
Please refer to the following information on how to check the KLAY balance through API.
When checking your account’s KLAY balance, please use Node API instead of Token History API. For more detailed information on Node API, make sure to check out the KAS document.
As shown in the example below, by utilizing the JSON RPC call, you can check your account’s KLAY balance with KAS API. To do so, enter the method string as "klay_getBalance" and the params as the account you want to check.
POST 'https://node-api.klaytnapi.com/v1/klaytn
Body
{
"id":1
"jsonrpc":"2.0",
"method":"klay_getBalance",
"params":[{account},"latest"],
}
For additional inquiries, click on Inquiry Registration at the top of the KAS Help Center if you are using a paid plan, or leave a post on the KAS community if you are using a free plan.
Thank you.
Klaytn API Service team.