16trust / 100

Tron Balance

by Vextorium in Onchain & crypto

x402 APIFailing, checked 49 min ago

Balance of a Tron address: TRX (free and staked), TRC-20 tokens (USDT, USDC, USDD...) and the bandwidth and energy available to send without fees. Live from a public Tron node.

POST https://api.vextorium.com/v1/tron-balance

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
49 min ago: Amount "0.004" is not in atomic token units
Next check
in 11 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/tron-balance" \
  -H "content-type: application/json" \
  -d '{"address":"TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.vextorium.com%2Fv1%2Ftron-balance
const res = await pay("https://api.vextorium.com/v1/tron-balance", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G"}),
});
console.log(await res.json());

Example input

{
  "address": "TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G"
}

Example output

{
  "address": "TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G",
  "created": "2021-09-14T11:03:45+00:00",
  "enabled": true,
  "explorer": "https://tronscan.org/#/address/TNXoiAJ3dct8Fjg4M9fkLFh9S2v9TXc32G",
  "resources": {
    "energy": 292458051,
    "free_bandwidth": 231,
    "staking_bandwidth": 2929
  },
  "source": "TronGrid (public Tron node)",
  "tokens": [
    {
      "amount": 1748125490538.6,
      "contract": "TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4",
      "gross_amount": "1748125490538600000006974517547",
      "symbol": "BTT"
    },
    {
      "amount": 38988447.15873,
      "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "gross_amount": "38988447158730",
      "symbol": "USDT"
    }
  ],
  "trx": 7873931.201282,
  "trx_frozen": 0
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
49 min agoAmount "0.004" is not in atomic token units40279 ms$0.004
5 h agoAmount "0.004" is not in atomic token units40276 ms$0.004
9 h agoAmount "0.004" is not in atomic token units40296 ms$0.004
14 h agoAmount "0.004" is not in atomic token units402263 ms$0.004
18 h agoAmount "0.004" is not in atomic token units402106 ms$0.004
22 h agoAmount "0.004" is not in atomic token units40279 ms$0.004
26 h agoAmount "0.004" is not in atomic token units40279 ms$0.004
30 h agoAmount "0.004" is not in atomic token units40279 ms$0.004
34 h agoAmount "0.004" is not in atomic token units402264 ms$0.004
38 h agoAmount "0.004" is not in atomic token units40288 ms$0.004
43 h agoAmount "0.004" is not in atomic token units402171 ms$0.004
46 h agoAmount "0.004" is not in atomic token units40299 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40278 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40284 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40273 ms$0.004