81trust / 100

Skill Wallet Readiness

by Skill: Agent wallet readiness in Onchain & crypto

x402 APIPassing, checked 2 h ago

One call answers 'can this wallet pay right now?' - USDC balances on Base AND Solana, live Base gas, and a ready-to-share Coinbase Onramp funding link if it's running dry. Agent wallet readiness check skill pack: one x402 payment runs 3 underlying tools (wallet-balances, gas-snapshot, onramp-link); partial-success per step.

POST https://agent402.tools/api/skill/wallet-readiness

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/wallet-readiness" \
  -H "content-type: application/json" \
  -d '{"address":"0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0","solanaAddress":"J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg"}'
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%2Fagent402.tools%2Fapi%2Fskill%2Fwallet-readiness
const res = await pay("https://agent402.tools/api/skill/wallet-readiness", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0","solanaAddress":"J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg"}),
});
console.log(await res.json());

Example input

{
  "address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
  "solanaAddress": "J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg"
}

Example output

{
  "args": {
    "address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "solanaAddress": "J7aN3PLJnTCF5qpEnvJHJsnCjcGuqC2rYtEM8Gv3xwg"
  },
  "pack": "wallet-readiness",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "wallet-balances"
    },
    {
      "ok": true,
      "result": {},
      "slug": "gas-snapshot"
    },
    {
      "ok": true,
      "result": {},
      "slug": "onramp-link"
    }
  ],
  "summary": "3/3 steps succeeded"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402185 ms$0.008
8 h agoPassed402183 ms$0.008