80trust / 100

Solana Balance

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 3 h ago

chainpeek (Tanod) Solana SOL balance of an address, in lamports and SOL. Read-only. Use when an agent needs a Solana wallet's SOL balance before paying, funding or checking an account.

POST https://tanod.dev/v1/solana/balance

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
284 ms typical, 732 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/solana/balance' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"}'
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%2Ftanod.dev%2Fv1%2Fsolana%2Fbalance
const res = await pay("https://tanod.dev/v1/solana/balance", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"address\":\"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg\"}",
});
console.log(await res.json());

Example input

{
  "address": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
}

Example output

{
  "address": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
  "commitment": "confirmed",
  "lamports": "39869364",
  "rpc_calls": 1,
  "slot": 454830993,
  "sol": "0.039869364"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402269 ms$0.002
7 h agoPassed402284 ms$0.002
11 h agoPassed402284 ms$0.002
15 h agoPassed402826 ms$0.002
19 h agoPassed402304 ms$0.002
22 h agoPassed402394 ms$0.002
26 h agoPassed402270 ms$0.002
29 h agoPassed402271 ms$0.002
33 h agoPassed402417 ms$0.002
36 h agoPassed402714 ms$0.002
40 h agoPassed402275 ms$0.002
44 h agoPassed402697 ms$0.002
2 days agoPassed402269 ms$0.002
2 days agoPassed402732 ms$0.002
2 days agoPassed402258 ms$0.002