agirails_pay
Generates a TypeScript snippet for smart pay, automatically selecting escrow for agent addresses or instant payment for HTTPS endpoints. Use for direct payments without negotiation.
Instructions
Returns a TypeScript snippet for smart pay: the generated code automatically selects ACTP escrow (for 0x agent addresses and slugs) or x402 instant payment (for HTTPS endpoints). Use for direct payments without negotiation.
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": {
"target": "<target>",
"amount": "<amount>"
},
"name": "agirails_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Agent address (0x...), HTTPS endpoint, or agent slug. Smart pay selects ACTP vs x402 automatically. | |
| amount | Yes | USDC amount to send (e.g. "1", "0.50") | |
| service | No | ||
| network | No | testnet |