API Acre · Crypto Calldata Decode

by API Acre

POSTBaseSolana

$0.001

per call · USD Coin on Base

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.

Endpoint

POST https://apiacre.com/v1/crypto/calldata-decode

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/crypto/calldata-decode", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "calldata": "0xa9059cbb0000000000000000000000001111111111111111111111111111111111111111000...",
    "input_mode": "auto"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/crypto/calldata-decode" \
  -H "Content-Type: application/json" \
  -d '{"calldata":"0xa9059cbb0000000000000000000000001111111111111111111111111111111111111111000...","input_mode":"auto"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "arguments": [
      {
        "index": 0,
        "type": "address",
        "value": "0x1111111111111111111111111111111111111111"
      }
    ],
    "canonicalSignature": "transfer(address,uint256)",
    "encoding": {
      "argumentBytes": 64,
      "argumentsSha256": "d3458da251349437abe3549042a49868dc5528422a63bb815f3e0b46725052c9",
      "calldataBytes": 68,
      "calldataSha256": "f77b5da6ef3efa41f5084d653dc4a135a3978d541db97ce13225bd442b025198",
      "canonical": true
    },
    "function": "transfer",
    "inputMode": "selector_and_arguments",
    "resolution": {
      "candidateCount": 1,
      "candidates": [
        "transfer(address,uint256)"
      ],
      "matchedStandards": [
        "ERC-20"
      ],
      "method": "built_in_standard",
      "signatureProvided": false
    },
    "selector": "0xa9059cbb",
    "selectorPresent": true,
    "signature": "transfer(address,uint256)",
    "signatureSource": "built_in_standard",
    "types": [
      "address",
      "uint256"
    ],
    "values": [
      "0x1111111111111111111111111111111111111111",
      42
    ],
    "warnings": [
      "Selector resolution is limited to 29 published standard signatures; four-byte..."
    ]
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.calldata-decode",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from API Acre & similar services