---
title: "Agent payment pre-check — one verdict before paying an XRPL address (x402, $0.03 USDC on Base or RLUSD on XRPL)"
method: GET
path: "/api/x402/precheck"
tags: ["Agents"]
---

# Agent payment pre-check — one verdict before paying an XRPL address (x402, $0.03 USDC on Base or RLUSD on XRPL)

`GET /api/x402/precheck`

## Request

- Base URL: `https://www.xrplhub.io`
- URL: `https://www.xrplhub.io/api/x402/precheck`
- Auth: none declared

Before an agent pays an XRPL address: a verdict (block / caution / proceed) by fixed published rules, with the destination's XRPLScore, a sanctions screen against every list held (anchored receipt, verify at /api/attest/verify), account age and ledger flags, and wouldFail when the ledger would reject the payment as described (missing destination tag, Deposit Authorization, no RLUSD trust line, unfunded account). The rules are returned in every response. Not advice; 'proceed' only means no rule fired. No signup.

## Query parameters

- `destination` string, required
- `amount` string
- `currency` 'XRP' | 'RLUSD'
- `destinationTag` integer
- `from` string

## Response `200`

{ verdict, wouldFail, reasons[], xrplScore, sanctions, account, payment, rules[], disclaimer }

## Other responses

- `400`: Malformed destination / amount / tag — refused before any charge.
- `402`: Payment Required — x402 challenge on either rail (see /api/x402/usdc/mpt/{issuanceId}).

---

[API](https://skmtc.dev/xrplhub/apis/xrplhub-xrplscore-and-prebuilt-xrpl-transactions.md) · [All operations](https://skmtc.dev/xrplhub/apis/xrplhub-xrplscore-and-prebuilt-xrpl-transactions/llms.txt) · [OpenAPI document](https://skmtc.dev/xrplhub/apis/xrplhub-xrplscore-and-prebuilt-xrpl-transactions/revisions/a5d4e13aff32?raw)
