GET
/
get-allowance
Get Allowance
curl --request GET \
  --url https://api.sandbox.brickken.com/get-allowance \
  --header 'x-api-key: <api-key>'
{
  "allowance": "<string>"
}
Retrieves the allowance amount for a spender.

Query Parameters

  • tokenSymbol (required): Token symbol
  • ownerAddress (required): Token owner address
  • spenderAddress (required): Spender address
  • chainId (required): Blockchain network ID

Example

curl --request GET \
  --url 'https://api.sandbox.brickken.com/get-allowance?tokenSymbol=EXMPL&ownerAddress=0x123...&spenderAddress=0x456...&chainId=0x89' \
  --header 'x-api-key: YOUR_API_KEY'

Response

{
  "allowance": "1000000000000000000"
}

Authorizations

x-api-key
string
header
required

Query Parameters

tokenSymbol
string
required

The symbol of the token (e.g., "USDT").

spenderAddress
string
required

The Ethereum address of the spender.

ownerAddress
string
required

The Ethereum address of the token owner.

Response

200 - application/json

Successful response

allowance
string

Allowance amount.