xrplme_get_country_schema
Standard data for one country: the structured record plus its freshness, at the $1 tier. REQUIRES PAYMENT.
XRPL : 1 XRP via x_payment_signature + x_inv_id
Solana : $1.00 USDC via x_sol_payload
Base : $1.00 USDC via x_base_tx
Args:
slug: Country slug (e.g., "thailand")
x_payment_signature: JSON string containing tx_hash AND signedTxBlob
(hex-encoded signed XRPL tx). Both are required: the t54
facilitator decodes the blob to bind the on-chain InvoiceID.
x_inv_id: Invoice ID
x_sol_payload: OPTIONAL. base64 of an x402 PaymentPayload paying USDC
on Solana. When present it is verified AND settled via the local
facilitator; the XRPL arguments are then ignored.
x_base_tx: OPTIONAL. Hash of your own USDC transfer on Base
(eip155:8453) to the payTo in the payment_required error. Verified
on-chain and consumed once; the other arguments are then ignored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "xrplme_get_country_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| x_inv_id | No | ||
| x_base_tx | No | ||
| x_sol_payload | No | ||
| x_payment_signature | No |