16trust / 100

Abi Decode

by Vextorium in Onchain & crypto

x402 APIFailing, checked 3 h ago

Decode EVM calldata (transaction input) with the function signature or, if omitted, by looking up the selector on 4byte; or decode return data with its output types (e.g. uint256,address).

POST https://api.vextorium.com/v1/abi-decode

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.003" is not in atomic token units
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.vextorium.com/v1/abi-decode' \
  -H 'content-type: application/json' \
  --data-raw '{"data":"0xa9059cbb0000000000000000000000007e5f4552091a69125d5dfcb7b8c2659029395bdf00000000000000000000000000000000000000000000000000000000000f4240"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Fabi-decode
const res = await pay("https://api.vextorium.com/v1/abi-decode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"data\":\"0xa9059cbb0000000000000000000000007e5f4552091a69125d5dfcb7b8c2659029395bdf00000000000000000000000000000000000000000000000000000000000f4240\"}",
});
console.log(await res.json());

Example input

{
  "data": "0xa9059cbb0000000000000000000000007e5f4552091a69125d5dfcb7b8c2659029395bdf00000000000000000000000000000000000000000000000000000000000f4240"
}

Example output

{
  "arguments": [
    "0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf",
    "1000000"
  ],
  "function": "transfer(address,uint256)",
  "selector": "0xa9059cbb",
  "signature_source": "4byte.directory"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.003" is not in atomic token units40278 ms$0.003
8 h agoAmount "0.003" is not in atomic token units40275 ms$0.003
12 h agoAmount "0.003" is not in atomic token units402100 ms$0.003
17 h agoAmount "0.003" is not in atomic token units402119 ms$0.003
21 h agoAmount "0.003" is not in atomic token units40276 ms$0.003
25 h agoAmount "0.003" is not in atomic token units40294 ms$0.003
29 h agoAmount "0.003" is not in atomic token units40295 ms$0.003
33 h agoAmount "0.003" is not in atomic token units402154 ms$0.003
37 h agoAmount "0.003" is not in atomic token units402235 ms$0.003
40 h agoAmount "0.003" is not in atomic token units40279 ms$0.003
45 h agoAmount "0.003" is not in atomic token units40279 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40281 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40274 ms$0.003
2 days agoAmount "0.003" is not in atomic token units40279 ms$0.003
3 days agoAmount "0.003" is not in atomic token units40287 ms$0.003