82trust / 100

X1 Payment

by APEX X1 payment verification in Markets & finance

x402 APIPassing, checked 7 min ago

Did that X1 payment actually land? Pass ?sig=<signature> and optionally ?to=<wallet>, ?mint=<token> and ?expect=0.5 to get the payer, how much reached that wallet in XNT or any SPL token, whether it covers what you expected, confirmed vs finalized, memos, fee and slot. Counted by balance change, so a payment sent by a program (escrow, multisig, router) is seen too. Read-only: checking never consumes the payment.

GET https://apexfaucet.xyz/api/x402/x1-payment

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
204 ms typical, 261 ms slowest 5%
Last check
7 min ago
Next check
in 25 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://apexfaucet.xyz/api/x402/x1-payment?expect=0.5&mint=Du6Z596DwGnfUcMSyRHSBQzNybiQKu8GESVfruEv9Jqr&sig=36FNhA6feRA6RPk9N2SHv3gMk23kemuuhkxG2me8m4Cd2FW5MjHEQPKX3ELstLBUfqq2SZ5zSbmSmZNUxfgp3Y9y&to=HYiepS7mNCVVKoaDmZLQ6rNtMWHTQqKheM1NLGn1x8kJ"
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%2Fapexfaucet.xyz%2Fapi%2Fx402%2Fx1-payment
const res = await pay("https://apexfaucet.xyz/api/x402/x1-payment?expect=0.5&mint=Du6Z596DwGnfUcMSyRHSBQzNybiQKu8GESVfruEv9Jqr&sig=36FNhA6feRA6RPk9N2SHv3gMk23kemuuhkxG2me8m4Cd2FW5MjHEQPKX3ELstLBUfqq2SZ5zSbmSmZNUxfgp3Y9y&to=HYiepS7mNCVVKoaDmZLQ6rNtMWHTQqKheM1NLGn1x8kJ");
console.log(await res.json());

Example input

{
  "expect": "0.5",
  "mint": "Du6Z596DwGnfUcMSyRHSBQzNybiQKu8GESVfruEv9Jqr",
  "sig": "36FNhA6feRA6RPk9N2SHv3gMk23kemuuhkxG2me8m4Cd2FW5MjHEQPKX3ELstLBUfqq2SZ5zSbmSmZNUxfgp3Y9y",
  "to": "HYiepS7mNCVVKoaDmZLQ6rNtMWHTQqKheM1NLGn1x8kJ"
}

Example output

{
  "data": {
    "asset": "XNT",
    "commitment": "finalized",
    "enough": true,
    "expected": 3,
    "failed": false,
    "feeXnt": 0.0000015,
    "final": true,
    "found": true,
    "memos": [],
    "payer": "j1TUP3sSnS8GFzWovD4G4mF7GX2Tky5tyQgnREwvswj",
    "received": 3.373,
    "settled": true,
    "sig": "36FNhA6feRA6RPk9N2SHv3gMk23kemuuhkxG2me8m4Cd2FW5MjHEQPKX3ELstLBUfqq2SZ5zSbmSmZNUxfgp3Y9y",
    "slot": 81987219,
    "to": "HYiepS7mNCVVKoaDmZLQ6rNtMWHTQqKheM1NLGn1x8kJ"
  },
  "ok": true,
  "paid": 0.003
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
7 min agoPassed402204 ms$0.003
5 h agoPassed402261 ms$0.003
8 h agoPassed402164 ms$0.003
11 h agoPassed402350 ms$0.003
16 h agoPassed40263 ms$0.003