Generate cryptographically verified receipts for XRP payments on the Flare Network.
XRPLink uses API keys for the attestation API and JWT bearer tokens for account and billing endpoints. Create an account to get a free API key.
curl -X POST https://xrp-link.com/auth/signup \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"yourpassword"}'
// Response
{
"token": "eyJhbGciOiJIUzI1NiIs...",
"apiKey": "sk_live_..."
}
curl -X POST https://xrp-link.com/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"yourpassword"}'
curl https://xrp-link.com/me \
-H "Authorization: Bearer <your-token>"
curl https://xrp-link.com/receipt/87AD359A0DB9E27260AAE29766DC858886C54DAC4733D43B1B72CBB90E29B95F
Attesting a payment generates the on-chain cryptographic proof. This requires an API key with a paid or pro plan. Proofs are ready in ~90-180 seconds (FDC voting round).
curl -X POST https://xrp-link.com/api/v1/verify/xrp-payment \
-H "Content-Type: application/json" \
-H "X-API-Key: sk_live_..." \
-d '{"txHash":"87AD359A0DB9E27260AAE29766DC858886C54DAC4733D43B1B72CBB90E29B95F"}'
// Response (HTTP 202)
{
"id": "3f0c8e2a-...",
"txHash": "87AD359A0DB9E27260AAE29766DC858886C54DAC4733D43B1B72CBB90E29B95F",
"roundId": 1393372,
"status": "pending"
}
curl https://xrp-link.com/api/v1/status/3f0c8e2a-... \
-H "X-API-Key: sk_live_..."
// Statuses: pending, ready, verified, failed, not_found
curl -X POST https://xrp-link.com/api/v1/webhooks \
-H "Content-Type: application/json" \
-H "X-API-Key: sk_live_..." \
-d '{"url":"https://your-app.com/hooks/xrp"}'
curl -X POST https://xrp-link.com/billing/subscribe \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-token>" \
-d '{"tier":"paid"}'
// Response
{ "url": "https://checkout.stripe.com/c/pay/..." }
XRPLink exposes an MCP server so AI agents can verify payments directly. Connect via stdio or the HTTP endpoint.
| Tool | Description |
|---|---|
verify_xrp_payment | Submit a txHash for attestation |
get_attestation_status | Check attestation by UUID |
lookup_attestation_by_tx | Find attestation by txHash |
get_attestation_by_round | List attestations by round ID |
get_server_info | Server, network, and contract info |
# stdio transport (local agents)
npm run start:mcp
# HTTP/SSE endpoint
curl https://xrp-link.com/mcp
Errors are returned as JSON with a machine-readable code and a human-readable message:
{
"error": "INVALID_TX_HASH",
"message": "Expected 64 hex characters for transaction hash",
"suggestedAction": "Provide a valid XRP transaction hash..."
}
| Code | Meaning |
|---|---|
MISSING_API_KEY | X-API-Key header missing |
INVALID_API_KEY | API key invalid or deactivated |
RATE_LIMITED | Per-minute limit exceeded for your tier |
INVALID_TX_HASH | Not a valid 64-hex transaction hash |
SUBMIT_FAILED | Attestation submission to FdcHub failed |
NOT_FOUND | Resource not found |
FORBIDDEN | Requires a higher plan tier |
AUTH_FAILED | Invalid email/password |
MISSING_AUTH | Bearer token missing |
INVALID_AUTH | Bearer token invalid or expired |