API & MCP
Everything a person can do on Wallet Permission Explorer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://walletpermissionexplorer.usefulweb.site/api/v1/calculate– run Wallet Permission ExplorerGET https://walletpermissionexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Wallet Permission Explorer
Checks a wallet's live token permissions straight from the chain: ERC-20 allowances for the major tokens against a verified list of well-known spenders (Uniswap Permit2 and routers, 1inch, 0x, CoW, Aave, OpenSea), Permit2 sub-allowances with expiry, NFT operator approvals for collections you list, and EIP-7702 account delegation. Flags unlimited approvals, approvals to plain wallets and to unverified contracts, and shows how much of your balance is exposed.
| Field | Type | Default | Description |
|---|---|---|---|
mode | select (lookup, logs) | "lookup" | What do you have? |
chain | select (ethereum, base, arbitrum, optimism, polygon, avalanche, bsc) | "ethereum" | Chain |
owner | text | — | Wallet address (owner) |
extraTokens | list | — | Extra ERC-20 tokens to check. One token address per line (added to USDC/USDT/WETH/DAI on this chain). |
extraSpenders | list | — | Extra spenders / operators to check. One address per line, e.g. a contract you once approved. |
nftCollections | list | — | NFT collections (ERC-721/1155) to check. One collection address per line; checked with isApprovedForAll against marketplace operators and your extra spenders. |
approvalLogs | textarea | — | Approval / ApprovalForAll logs JSON (offline). Array of {address, topics, data, blockNumber?, logIndex?} as returned by eth_getLogs. |
currentAllowances | textarea | — | Current allowance values JSON (offline, optional). Array of {token, spender, allowance} overriding the log values (e.g. after partial spending). |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://walletpermissionexplorer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
wallet_permission_explorer - Local stdio connector:
node src/mcp-stdio.ts --tool=wallet-permission-explorer
{
"mcpServers": {
"wallet-permission-explorer": { "type": "http", "url": "https://walletpermissionexplorer.usefulweb.site/mcp" }
}
}