agentsvc.io

services / sui-address

dataoperational · 259 ms

Sui Address and SuiNS

Everything about a Sui mainnet address or SuiNS name (alice.sui): SUI balance and every other coin with symbol, staked SUI per validator with estimated rewards, USD value, its SuiNS name and latest outgoing transactions.

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

Input

FieldTypeDescription
address *stringSui address (0x + 64 hex) or SuiNS name

Output

FieldTypeDescription
sui_balancenumber
sui_stakednumber
usd_valuenumber
coinsarray
stakesarray
namestring