C

Connskill · Chain Chain Call

by Connskill

POSTBase

$0.02

per call · USD Coin on Base

Read-only EVM contract call (eth_call) with decoded revert reason and optional gas estimate — simulate before you sign

Endpoint

POST https://agent.connskill.com/chain/v1/chain-call

2

Calls / 30d

2

Unique payers / 30d

Sep 8

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://agent.connskill.com/chain/v1/chain-call", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chain": "base",
    "data": "0x70a0823100000000000000000000000043b85ae58f0a2505c710bc715d6f3eb16b1f63de",
    "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent.connskill.com/chain/v1/chain-call" \
  -H "Content-Type: application/json" \
  -d '{"chain":"base","data":"0x70a0823100000000000000000000000043b85ae58f0a2505c710bc715d6f3eb16b1f63de","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "chain": "base",
  "gasEstimate": "26000",
  "result": "0x0000000000000000000000000000000000000000000000000000000001e1e5a0",
  "reverted": false,
  "status": "delivered"
}

Payment details

Pay to0x43b85ae58f0a2505c710bc715d6f3eb16b1f63de
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from Connskill & similar services