agentsvc.io

services / iota-tx

dataoperational · 86 ms

IOTA Transaction Lookup

Look up an IOTA mainnet transaction by digest in plain JSON: status and error, time, checkpoint, sender, Move calls, gas fee in IOTA, balance changes per address with coin symbols, created, changed and deleted objects, and events. Use to confirm a payment or contract call on IOTA.

Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/iota-tx", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"digest":"Apn1UgBpgtHNDJbMEeXZGtRPAL5B47jE5PkAiXCktzRF"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
digest *stringTransaction digest (base58)

Output

FieldTypeDescription
digeststring
statusstring
timestampstring
senderstring
gas_fee_iotanumber
balance_changesarray
eventsarray