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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 269 ms | $0.002 |
| 7 h ago | Passed | 402 | 284 ms | $0.002 |
| 11 h ago | Passed | 402 | 284 ms | $0.002 |
| 15 h ago | Passed | 402 | 826 ms | $0.002 |
| 19 h ago | Passed | 402 | 304 ms | $0.002 |
| 22 h ago | Passed | 402 | 394 ms | $0.002 |
| 26 h ago | Passed | 402 | 270 ms | $0.002 |
| 29 h ago | Passed | 402 | 271 ms | $0.002 |
| 33 h ago | Passed | 402 | 417 ms | $0.002 |
| 36 h ago | Passed | 402 | 714 ms | $0.002 |
| 40 h ago | Passed | 402 | 275 ms | $0.002 |
| 44 h ago | Passed | 402 | 697 ms | $0.002 |
| 2 days ago | Passed | 402 | 269 ms | $0.002 |
| 2 days ago | Passed | 402 | 732 ms | $0.002 |
| 2 days ago | Passed | 402 | 258 ms | $0.002 |