Get Balance of an user address
Number of ERC-20 token hold by an address can be found using this method. The weightage for this API is 5
API Specification
Get Balance
POST
https://api.krypcore.com/api/v0/ft-manager/balanceOf
Balance of an user's address can be gathered under the given instance.
Headers
Name
Type
Description
Authorization*
String
User Auth Key obtained from Dash
DappId*
String
DappId
Request Body
Name
Type
Description
contractAddress*
String
The contract address of the ERC20 token.
address*
String
An user wallet address whose ERC20 token balance is to be retrieve.
{
"Data": 1000000000000000000,
"Message": "Balance fetched successfully",
"Status": "SUCCESS"
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location --request POST 'https://api.krypcore.com/api/v0/ft-manager/balanceOf' \
--header 'Authorization: xxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxx' \
--header 'ChainId: xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"contractAddress":"0xa9BCB7E413FfE96575390c6F44F54607b44F030a",
"address":"0x688612BD8e65FF693070A875b6a49672502a0707"
}'
Last updated
Was this helpful?