ENSC Business API
Business DashboardWebsite
  • Introduction
    • Use Cases
    • Configurations
  • Ready To Integrate?
  • Getting Started
    • Security
      • Generating Keys
      • Encrypting / Decrypting Request
  • Integrations
    • Contract Address
    • Enums
    • Authorization
    • Endpoints
      • Get Bank Lists
      • Token Balance
      • Token Approval
      • Mint
      • Mint Allocation
      • Redeem
      • Transfer
      • Withdraw
      • Verify Payout/Withdrawal
  • Libraries/SDKs
    • Client Libraries
Powered by GitBook
On this page
  1. Integrations
  2. Endpoints

Token Balance

POST /balance

This endpoint retrieves the balance of a specific ERC20 token for a given wallet address.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <api_key>

The request must be sent as JSON with the following properties:

Body

Name
Type
Description

recipient

string

Wallet address for which to check the balance.

assetContractAddress

string

The ERC20 token contract address.

Response

{
  "status": 200,
  "message": "Balance fetched successfully",
  "data": {
    "asset": "ENSC",
    "balance": "1000", 
    "contractAddress": "0x05D032ac25d322df992303dCa074EE7392C117b9"
  }
}
{
  "status": 400,
  "error": "Invalid Request",
  "message": "Invalid recipient address",
  "data": null
}
PreviousGet Bank ListsNextToken Approval

Last updated 2 months ago