get_x402_payment_challenge
Fetch the Base L2 x402 EIP-3009 payment challenge for a paid unlock path.
Call when a teaser tool returned an `unlock` block and you need the EIP-712
domain / amount / payTo to build an X-PAYMENT header. Allowed `product` values:
`signals` (0.01 USDC → /api/v1/monetized) or `edgar-m-and-a` (0.025 USDC →
/api/v1/monetized/edgar-m-and-a). Read-only / idempotent; does not settle on-chain.
After signing TransferWithAuthorization, call get_monetized_unlock_instructions
or HTTP GET the unlock path with header X-PAYMENT.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_x402_payment_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | No | edgar-m-and-a |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |