📙
Cray
  • Introduction
    • The Problem
    • How it works?
    • Want to Learn More?
  • APIs
    • Check Health
    • Create Payment order
    • Submit Order
    • Order Status
    • Fetch Approval
    • Supported Chains
    • Supported Token
  • AbstractPay SDK
  • ReactPay Hook
Powered by GitBook
On this page
  • Endpoint
  • Description
  • Request
  • Example Request
  • Response

Was this helpful?

  1. APIs

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"
    }
  }
}

PreviousOrder StatusNextSupported Chains

Last updated 3 months ago

Was this helpful?