x402 payment envelope (raw fields) (paid: 0.001 RLUSD / 0.001 USDC on Base / 0.001 RLUSD on Base via x402)
x402_envelopePaid: 0.001 RLUSD per call via x402 on XRPL mainnet (xrpl:0), or 0.001 USDC on Base (eip155:8453). Pay per call, solves one question: What payment terms does this URL advertise in its x402 response? The raw x402 payment-required fields (header and/or JSON body) a URL advertises to one anonymous GET, as received, with source and observed_at. Never pays or signs anything. Public http(s) URLs only; no safety, price or seller verdict. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.
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": {
"url": "<url>"
},
"name": "x402_envelope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | public http(s) URL of an x402 resource (URL-encode it) | |
| payment_signature | No | Optional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements. |