Fetch Approval

Endpoint

GET {{base_url}}/fetch-approval/{address}

Description

This endpoint retrieves the approval details for a specific address.


Request

URL Parameters

Parameter
Type
Required
Description

address

String

Yes

The wallet or contract address to fetch approval details for.


Headers

Header
Value
Description

apikey

test1

API key for authentication.


Example Request

curl --location '<base_url>/fetch-approval/0xf66f409086647591e0c2f122C1945554b8e0e74F' \
--header 'apikey: test1'

Response

Success (200)

{
  "status": "success",
  "data": {
    "address": "0xf66f409086647591e0c2f122C1945554b8e0e74F",
    "approvalDetails": {
      "isApproved": true,
      "approvedSpender": "0x1234567890abcdef1234567890abcdef12345678",
      "approvedAmount": "1000",
      "token": "0xabcdef1234567890abcdef1234567890abcdef12",
      "timestamp": "2025-01-07T12:00:00Z"
    }
  }
}

Last updated

Was this helpful?