Yield.xyz MCP · GET Transaction

by Yield.xyz MCP

POSTBaseX Layer

$0.001

per call · USD Coin on Base

Get the on-chain status of a single transaction by its Yield.xyz transaction ID — poll after broadcasting to confirm it landed, or inspect the constructed/unsigned transaction.

Endpoint

POST https://mcp.yield.xyz/x402/get_transaction

1

Calls / 30d

1

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://mcp.yield.xyz/x402/get_transaction", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "transactionId": "6b757454-725c-4871-9f9a-8fa159dc8720"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://mcp.yield.xyz/x402/get_transaction" \
  -H "Content-Type: application/json" \
  -d '{"transactionId":"6b757454-725c-4871-9f9a-8fa159dc8720"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "hash": "0xabc…",
  "id": "6b757454-…",
  "network": "base",
  "status": "CONFIRMED",
  "type": "SUPPLY"
}

Payment details

Pay to0xd433f056270912659f073d5ffe7ae247e39235a5
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, X Layer
Schemesexact

Is this your API?

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

Get featured →

More from Yield.xyz MCP & similar services