# EVM calldata decode

POST https://horizonpulse.dev/api/evm/decode

- Price: $0.01 per call. The exact amount is in the 402.
- Pay with: USDC on Base
- Family: Onchain and payments (/catalog/onchain.md)

## What it returns
Decode one EVM calldata hex string. POST JSON data, optional abi, decimals (0-36) and knownSpenders. Matches bundled ERC-20, ERC-721, ERC-1155, ERC-2612, Permit2, Multicall3 and common router selectors, or a caller-supplied ABI. Returns the function, arguments, human amounts when decimals are supplied, and flags for unlimited approval, setApprovalForAll, and a permit spender absent from knownSpenders. No RPC and no selector database. Not a clearance. USDC on Base only. Bad input is not charged.

## Inputs
- data (required), JSON body: 0x-prefixed calldata.
- abi, JSON body: Optional function entries.
- decimals, JSON body: integer
- knownSpenders, JSON body: array
Full schema and bounds: /openapi.json

## If the call fails
- USDC on Base: errors are not charged, apart from the exceptions noted on a route.

## Try it
- Call it unpaid to read the 402: POST https://horizonpulse.dev/api/evm/decode
- Setup: /setup.md
