81trust / 100

Base Tx

by base-tx in Onchain & crypto

x402 APIPassing, checked 1 h ago

Base transaction lookup by hash - sender, recipient, value, calldata, gas and block, live from Base mainnet via eth_getTransactionByHash.

POST https://x402.agentindex.world/base/tx

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
73 ms typical, 73 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/base/tx" \
  -H "content-type: application/json" \
  -d '{"hash":"0xc2490a8a0aedd1196617a0e52111f82d6059986db7f1713ab23221c91c42f5c4"}'
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%2Fx402.agentindex.world%2Fbase%2Ftx
const res = await pay("https://x402.agentindex.world/base/tx", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hash":"0xc2490a8a0aedd1196617a0e52111f82d6059986db7f1713ab23221c91c42f5c4"}),
});
console.log(await res.json());

Example input

{
  "hash": "0xc2490a8a0aedd1196617a0e52111f82d6059986db7f1713ab23221c91c42f5c4"
}

Example output

{
  "block_number": 52118214,
  "from_address": "0x59b7ebc67a3d627fabaf06768c818638452ae704",
  "gas": 95905,
  "gas_price_wei": 5025000,
  "hash": "0xc2490a8a0aedd1196617a0e52111f82d6059986db7f1713ab23221c91c42f5c4",
  "input_data": "0xe3ee160e0000000000000000000000003cedc3cba49c3809ee46b9bf60da75d6607b45ec000000000000000000000000b3f32bdfe8d07825bc0d7387295ab1d7559ba69d00000000000000000000000000000000000000000000000000000000000003e8",
  "nonce": 1579520,
  "to_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "value_wei": 0
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40273 ms$0.008
7 h agoPassed402287 ms$0.008