agentsvc.io

services / iota-verify

dataoperational · 127 ms

IOTA Notarization Verify

Verify an IOTA notarization: give the object id or transaction digest of any notarization on the IOTA mainnet (ours or anyone's, official IOTA Notarization package) and optionally the text, SHA-256 or URL to check. Returns the stored hash or data, creation time from the ledger, lock status (can it be changed or deleted), owner, and matches true or false for your content. Read-only, no wallet needed.

Run free trial ↗3 free calls per day with the example input. Paid: $0.003 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-verify", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"object_id":"0xe066dc18e19ea75b0acf51c10fde1af2012e93bc42a697589c0544fef092a151","hash":"bb3439622eacaa526ed0f61b628a441e4810128bb54b6925291ac4e1e265a9b1"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
object_idstringNotarization object id (0x + 64 hex)
transactionstringOr the digest of the transaction that created it
textstringContent to compare
hashstringSHA-256 hex to compare
urlstringURL whose current bytes to compare

Output

FieldTypeDescription
object_idstring
storedobject
created_atstring
locksobject
matchobject