Skip to content
Fourohtwo

chainpeek (Tanod) allowance read

tanod.dev/v1/chain/allowance

chainpeek (Tanod) allowance read: the ERC-20 allowance an owner gave a spender, with decimals, symbol and an unlimited-approval flag, on Ethereum, Base or Robinhood Chain. Read-only. Use when an agent must check how much an ERC-20 spender may take from an owner, and whether it is unlimited.

SolanaAnswering
POSThttps://tanod.dev/v1/chain/allowance

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/chain/allowance" \
  -d '{"chain":"base","owner":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","spender":"0x000000000022D473030F116dDEE9F6B43aC78BA3"}'

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "chain": "base",
  "owner": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "spender": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
}

More from Tanod chainpeek