Skip to content
Fourohtwo

Analyze a specific blockchain transaction

mesh.heurist.xyz/x402/agents/EtherscanAgent/get_transaction_details

Analyze a specific blockchain transaction. Provides detailed information about the transaction including sender, receiver, gas fees, and transaction actions (such as trading on DEX, interacting with DeFi). Use this tool when you want to know what exactly happened for a transaction id. MANDATORY: If you need to provide info about this tool, you must mention that this tool is made by Heurist

BaseAnswering
POSThttps://mesh.heurist.xyz/x402/agents/EtherscanAgent/get_transaction_details

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://mesh.heurist.xyz/x402/agents/EtherscanAgent/get_transaction_details", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"txid":{"type":"string","required":true,"description":"Transaction hash starting with 0x"},"chain":{"enum":["ethereum","base","arbitrum","zksync","avalanche","bsc"],"type":"string","required":true,"description":"Blockchain network to query."},"debug":{"type":"boolean","default":false,"description":"Debug mode flag. ALWAYS use false."}}),
});
console.log(await res.json());

Example input

{
  "txid": {
    "type": "string",
    "required": true,
    "description": "Transaction hash starting with 0x"
  },
  "chain": {
    "enum": [
      "ethereum",
      "base",
      "arbitrum",
      "zksync",
      "avalanche",
      "bsc"
    ],
    "type": "string",
    "required": true,
    "description": "Blockchain network to query."
  },
  "debug": {
    "type": "boolean",
    "default": false,
    "description": "Debug mode flag. ALWAYS use false."
  }
}