Skip to main content
Retrieve ERC-20 token approval (allowance) records for a wallet on a specific chain. Each approval represents a transaction where the wallet granted a spender contract permission to transfer tokens on its behalf.
Cost: 1 credit per call (WALLET credits)
Interactive Playground: Test this endpoint in the API Playground. Get your API key at data.octav.fi

Endpoint


Path Parameters

chain
string
required
Chain identifierSupported chains: arbitrum, avalanche, base, binance, ethereum, fantom, gnosis, linea, optimism, polygonSee Supported Blockchains for details

Required Parameters

addresses
string
required
Wallet address to fetch approvals for

Optional Parameters

limit
integer
default:"25"
Number of results per page
  • Minimum: 1
  • Maximum: 100
  • Default: 25
cursor
string
Cursor string from a previous response to fetch the next page

Response

Top-Level Fields

cursor
string|null
Cursor for the next page. null or absent when there are no more results.
pageSize
number
Number of items returned in this page.
items
array
Array of token approval records.

Approval Object

Each item in items contains:
block
string
Block number where the approval transaction was mined.
timestamp
string
ISO 8601 timestamp of the block.
hash
string
Transaction hash of the approval.
contract
string
Address of the token contract that was approved.
from
string
Wallet address that granted the approval.
to
string
Spender address that received the approval.
amount
string
Raw approved amount (not decimal-adjusted). A max uint256 value indicates unlimited approval.
asset
object
Enriched token metadata. Present only when the token is tracked in the Octav asset database.Contains: name, symbol, balance, price, value, decimal, chain, contract, imgSmall, imgLargeFollows the standard AssetViewModel shape used across other Octav API responses.

Example Request


Example Response


Pagination

Use cursor-based pagination to iterate through results:
  1. Make an initial request with just limit (or use the default of 25)
  2. If the response contains a non-null cursor, pass it as the cursor query parameter in the next request
  3. When cursor is null or absent, you have reached the end of the results

Use Cases

Review all active token approvals for security:

Error Responses

Invalid parameters provided.
Common causes:
  • Invalid or unsupported chain in URL path
  • Missing addresses query parameter
  • limit out of range (must be 1-100)
Authentication failed.
Solution: Check your API key in the Authorization header
Insufficient credits.
Solution: Purchase more credits at data.octav.fi
Upstream data provider is unavailable.
Solution: Retry after a short delay. If the issue persists, the upstream provider may be experiencing an outage.

Portfolio

View current portfolio holdings

Transactions

Query full transaction history

Wallet

Get wallet balances across protocols

Token Overview

Detailed token breakdown by protocol