Pre-send check for an XRP Ledger payment
bruk-agent-api.fly.dev/v1/send-check
Pre-send check for an XRP Ledger payment: whether the destination is activated, requires a destination tag, blocks or pre-approves senders, can hold the token (trust line, or MPT opt-in and issuer approval), is blackholed, and whether the source can afford it. For a multi-purpose token, pass mpt_issuance_id instead of currency and issuer. Returns ok_to_send, send_with_caution, or will_fail with re
GET
https://bruk-agent-api.fly.dev/v1/send-checkUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://bruk-agent-api.fly.dev/v1/send-check?amount=5¤cy=RLUSD&destination=r36sbDCAsaCj44ZUXWY2jjGE1jBpsCoRQ4");
console.log(await res.json());Example input
{
"amount": "5",
"currency": "RLUSD",
"destination": "r36sbDCAsaCj44ZUXWY2jjGE1jBpsCoRQ4"
}