Key Benefits
Simple REST API
Create intents, submit deposits, and track status with a few endpoints.
Competitive Pricing
Market makers compete on price through automatic solver discovery.
Built-in Transaction Handling
Includes status tracking, automatic retries, and refund handling.
Fee Collection
Configure fee collection with a single parameter in your quote requests.
How It Works
Get an API key
Register on the Partner Dashboard to get your JWT token. Authenticated requests avoid the 0.2% platform fee.
Request a quote
Call the
/v0/quote endpoint with the user’s swap details. You’ll receive pricing and a unique deposit address.User deposits tokens
The user sends tokens to the deposit address. 1Click automatically begins the swap. Optionally use
/v0/deposit/submit with your transaction hash to speed up processing.Monitor status
Poll
/v0/status to track progress and display updates to your user.Centralized exchanges (CEXes) often use intermediate or per-user deposit addresses that may not credit deposits sent via NEAR Intents until they are recognized or whitelisted. Send a small test amount before attempting full-scale transfers.
Swap Statuses
| Status | Description |
|---|---|
PENDING_DEPOSIT | Awaiting deposit to the deposit address |
KNOWN_DEPOSIT_TX | Deposit transaction detected |
PROCESSING | Swap being executed by Market Makers |
SUCCESS | Funds delivered to the destination address |
INCOMPLETE_DEPOSIT | Deposit received but below required amount |
REFUNDED | Swap not completed, funds returned to refund address |
FAILED | Swap failed due to an error |
API Specification
Base URL:https://1click.chaindefuser.com/
Auto-generate clients using the OpenAPI spec.
Earning Fees
Distribution channels can earn fees on every swap. Configure fee collection when requesting quotes:Fee Configuration Guide
Learn how to configure fees and set up fee aggregation for high-volume integrations
Example Integration
See a complete example in the near-intents-examples repository, which demonstrates:- Requesting quotes
- Handling deposits
- Monitoring swap status
- Error handling and refunds