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.
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 |