16trust / 100

Contract Abi

by Vextorium in Onchain & crypto

x402 APIFailing, checked 2 h ago

ABI of a verified EVM contract (Sourcify): every function with signature, selector, inputs, outputs and read/write flag, plus events with topic0 and proxy implementations. Ready-to-use signatures for leer-contrato.

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

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/contract-abi" \
  -H "content-type: application/json" \
  -d '{"address":"0x6B175474E89094C44Da98b954EedeAC495271d0F","network":"ethereum","type":"read"}'
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%2Fcontract-abi
const res = await pay("https://api.vextorium.com/v1/contract-abi", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0x6B175474E89094C44Da98b954EedeAC495271d0F","network":"ethereum","type":"read"}),
});
console.log(await res.json());

Example input

{
  "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
  "network": "ethereum",
  "type": "read"
}

Example output

{
  "chain_id": 1,
  "contract": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
  "events": [
    {
      "indexed": [
        "src",
        "guy"
      ],
      "signature": "Approval(address,address,uint256)",
      "topic0": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
    },
    {
      "indexed": [
        "sig",
        "usr"
      ],
      "signature": "LogNote(bytes4,address,bytes32,bytes32,bytes)",
      "topic0": "0xd3d8bec38a91a5f4411247483bc030a174e77cda9c0351924c759f41453aa5e8"
    }
  ],
  "functions": [
    {
      "entries": [],
      "mutability": "view",
      "outputs": "bytes32",
      "reading": true,
      "selector": "0x3644e515",
      "signature": "DOMAIN_SEPARATOR()",
      "to_read_contract": "DOMAIN_SEPARATOR()(bytes32)"
    },
    {
      "entries": [],
      "mutability": "view",
      "outputs": "bytes32",
      "reading": true,
      "selector": "0x30adf81f",
      "signature": "PERMIT_TYPEHASH()",
      "to_read_contract": "PERMIT_TYPEHASH()(bytes32)"
    }
  ],
  "implementations": [],
  "is_proxy": false,
  "name": "Dai",
  "note": null,
  "source": "Sourcify"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
7 h agoAmount "0.004" is not in atomic token units402105 ms$0.004
11 h agoAmount "0.004" is not in atomic token units40296 ms$0.004
15 h agoAmount "0.004" is not in atomic token units40291 ms$0.004
19 h agoAmount "0.004" is not in atomic token units40279 ms$0.004
23 h agoAmount "0.004" is not in atomic token units40285 ms$0.004
27 h agoAmount "0.004" is not in atomic token units40278 ms$0.004
31 h agoAmount "0.004" is not in atomic token units40287 ms$0.004
35 h agoAmount "0.004" is not in atomic token units402121 ms$0.004
40 h agoAmount "0.004" is not in atomic token units40284 ms$0.004
43 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40282 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40275 ms$0.004
2 days agoAmount "0.004" is not in atomic token units402122 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402229 ms$0.004