agentsvc.io

services / iota-network

dataoperational · 152 ms

IOTA Network and Staking

IOTA mainnet in one call: epoch, latest checkpoint, reference gas price and the fee of a simple transfer, total and circulating supply, IOTA price and market cap, total stake and every active validator with staking APY, commission and stake, sorted by APY. Use to pick a validator or to show network health.

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

Input

FieldTypeDescription

Output

FieldTypeDescription
epochnumber
reference_gas_price_nanosnumber
supplyobject
price_usdnumber
stakingobject
validatorsarray