payment_preflight
Fail-closed x402 v2 firewall for network, asset, recipient, amount, scheme, resource host and expiry; 0.002 USDC.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy": {
"max_amount": "1000",
"allowed_assets": [
"USDC-contract"
],
"allowed_schemes": [
"exact"
],
"allowed_networks": [
"eip155:8453"
],
"allowed_recipients": [
"seller-address"
],
"allowed_resource_hosts": [
"phion.systems"
]
},
"payment_requirement": {
"asset": "USDC-contract",
"payTo": "seller-address",
"amount": "1000",
"scheme": "exact",
"network": "eip155:8453",
"resourceUrl": "https://phion.systems/v1/paid/attest",
"x402Version": 2
}
},
"name": "payment_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | ||
| intent_id | No | ||
| payment_requirement | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||