---
title: "Calldata decoder"
method: POST
path: "/v1/crypto/calldata-decode"
tags: ["crypto"]
---

# Calldata decoder

`POST /v1/crypto/calldata-decode`

## Request

- Base URL: `https://apiacre.com`
- URL: `https://apiacre.com/v1/crypto/calldata-decode`
- Auth: none required

Resolve 29 common ERC-20, ERC-165, ERC-721, ERC-1155, ERC-2612, and ERC-3009 selectors without a network lookup, or strictly decode arbitrary Ethereum or EVM calldata using a supplied Solidity signature.

Price: **$0.001 USDC** via x402 exact payment on Base and Solana.

## Request body

- CalldataInput
  - `function_signature` string, nullable: Optional Solidity function signature, including argument types but no parameter names. When omitted, calldata must include a selector from the bounded built-in ERC-20, ERC-165, ERC-721, ERC-1155, ERC-2612, or ERC-3009 set.
  - `calldata` string, required: ABI argument bytes, optionally prefixed by the four-byte function selector
  - `input_mode` 'auto' | 'selector_and_arguments' | 'arguments_only': Whether calldata includes a selector. Auto consumes a matching supplied-signature selector, or resolves a built-in standard selector when function_signature is omitted.

## Response `200`

Successful Response

- ServiceResponse
  - `request_id` string, required
  - `service` string, required
  - `version` string
  - `data` object, required
  - `meta` ServiceMeta, required
    - `duration_ms` integer, required
    - `cached` boolean
    - `sources` string[]
    - `warnings` string[]
    - `next_actions` ServiceNextAction[]
      - `service` string, required
      - `title` string, required
      - `reason` string, required
      - `method` 'POST'
      - `path` string, required
      - `price` string, required
      - `input_template` object, required
      - `use_output` string, required
      - `handoff_path` string, required
      - `checkout_path` string, required
      - `sample_path` string, nullable, required
      - `maximum_atomic_usdc` string, required
      - `handoff_payment_required` false
      - `executes_automatically` false
      - `authorization_required` boolean

## Other responses

- `402`: Payment Required. Decode PAYMENT-REQUIRED, satisfy the x402 requirement, and retry with PAYMENT-SIGNATURE.
- `422`: Validation Error

---

[API](https://skmtc.dev/apiacre/apis/api-acre.md) · [All operations](https://skmtc.dev/apiacre/apis/api-acre/llms.txt) · [OpenAPI document](https://skmtc.dev/apiacre/apis/api-acre/revisions/0ba942b920ad?raw)
