pay_x402_endpoint
Pay ANY external x402-paywalled endpoint from your managed agent wallet: the target's 402 challenge is settled in USDC and the response body is returned, with the settlement transaction as txHash. Endpoints settling in USDC on Solana or on Base mainnet (eip155:8453) are both paid from the same balance with nothing to set up: when a Base payment needs more than the Base side holds, the difference is moved over from Solana just before signing (usually under 10 seconds, 0.075% of the amount moved). No ETH is needed for gas; other EVM networks are refused. If the endpoint offers both, pin expected_network to choose. txHash is the Base transaction hash for a Base payment and the Solana signature for a Solana one. The wallet balance can take up to a minute to reflect a payment, so confirm with txHash rather than an immediate balance read. Use the guardrail arguments to pin what you agreed to pay. For Laso's own paid routes, prefer their dedicated tools instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full https URL of the x402 endpoint to call and pay. | |
| body | No | JSON request body (for POST/PUT). | |
| method | No | HTTP method (default GET). | |
| params | No | Query parameters to append to the URL. | |
| expected_asset | No | Refuse to settle in any other asset (e.g. a USDC mint/contract address; USDC on Base is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). | |
| expected_pay_to | No | Refuse to settle to any other receiving address. | |
| max_amount_usdc | No | Refuse to settle if the endpoint asks for more USDC than this. | |
| expected_network | No | Refuse to settle on any other network (CAIP-2 id): eip155:8453 for Base, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp for Solana. Pin it when an endpoint offers both, to choose which wallet pays. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||