API ReferenceToken APIGet Token ApprovalsGet Wallet Token ApprovalsGet Wallet Token ApprovalsGEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/approvalsList active ERC20 token approvals for a wallet, showing which contracts have access.PATH PARAMSaddressstringrequiredThe wallet address from which to retrieve active ERC20 token approvalsQUERY PARAMSchainstringThe chain to queryeth0x1sepolia0xaa36a7polygon0x89bsc0x38bsc testnet0x61avalanche0xa86afantom0xfacronos0x19arbitrum0xa4b1chiliz0x15b38chiliz testnet0x15b32gnosis0x64gnosis testnet0x27d8base0x2105base sepolia0x14a34optimism0xaholesky0x4268polygon amoy0x13882linea0xe708moonbeam0x504moonriver0x505moonbase0x507linea sepolia0xe705flow0x2ebflow-testnet0x221ronin0x7e4ronin-testnet0x7e5lisk0x46flisk-sepolia0x106apulse0x171sei0x531limitnumberThe desired page size of the result.cursorstringThe cursor returned in the previous response (used for getting the next page).Responses200Returns active ERC20 token approvals for the specified wallet address400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/approvals?chain=eth&limit=25' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' // Node.js v18+ has native fetch support// No additional dependencies requiredconst options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/approvals?chain=eth&limit=25', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/approvals?chain=eth&limit=25"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)package mainimport ( "fmt" "net/http" "io")func main() { url := "https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/approvals?chain=eth&limit=25" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/approvals?chain=eth&limit=25', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns active ERC20 token approvals for the specified wallet address{ "page": "2", "page_size": "100", "cursor": "", "result": [ { "block_number": 12526958, "block_timestamp": "2021-04-02T10:07:54.000Z", "transaction_hash": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09", "value": "8409770570506626", "value_formatted": "0.1", "token": { "address": "0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c", "address_label": "", "name": "Tether USD", "symbol": "USDT", "logo": "https://opensea.io/favicon.ico", "possible_spam": "", "verified_contract": "", "current_balance": "1000000000000000", "current_balance_formatted": "0.1", "usd_price": "1000000000000000", "usd_at_risk": "1000000000000000" }, "spender": { "address": "0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c", "address_label": "Binance 1", "entity": "Opensea", "entity_logo": "https://opensea.io/favicon.ico" } } ]}