near_swap
Swap any asset through NEAR Intents — get a deposit address — An executable NEAR Intents swap: a binding quote with a deposit address. Send amountIn of the origin asset there before the deadline; the output goes to recipient, or it is refunded to refundTo. Funds never pass through us. Any asset NEAR Intents routes, across chains. Buying a NEAR token runs near-token-safety first and refuses a STOP token unless force=1. Track with near-swap-status. Required inputs: from, to, amount, recipient, refundTo. Priced $0.01 per call over x402 on Base; send a prepaid x-credit-token header for unlimited calls, or get 1 free call/day per tool. No wallet or API key required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Asset you want | |
| from | Yes | Asset you pay with | |
| amount | Yes | Amount of the paying asset | |
| refundTo | Yes | Your address on the origin chain (refunds) | |
| slippage | No | Slippage in bps (optional, default 100) | |
| recipient | Yes | Receiving address on the destination chain | |
| depositType | No | INTENTS to pay from a NEAR Intents balance (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The result payload. Shape is service-specific; every field is documented in the tool description. | |
| service | No | The service id that answered. | |
| checkedAt | No | ISO-8601 timestamp of when the underlying reads were taken. |