agentsvc.io

services / iota-address

dataoperational · 95 ms

IOTA Address and Names

Everything about an IOTA mainnet address or IOTA name (alice.iota): IOTA balance and every other coin with symbol, staked IOTA per validator with estimated rewards, USD value, the IOTA name pointing to it and its latest outgoing transactions. Resolves names to addresses and back.

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-address", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"address":"0x74b8312393d50952c9a90bad5c9098c7c5da20f0832a22ed1ce8265524ab3df4"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
address *stringIOTA address (0x + 64 hex) or IOTA name like alice.iota

Output

FieldTypeDescription
addressstring
namestring
iota_balancenumber
iota_stakednumber
usd_valuenumber
coinsarray
stakesarray