Key Benefits
Simple REST API
Just a few endpoints to create intents, submit deposits, and track status. No blockchain expertise required.
Competitive pricing
Automatic solver discovery ensures market makers compete for best execution on every swap.
Built-in transaction handling
Status tracking, automatic retries, and refund handling are all managed for you.
Earn fees on every swap
Configure fee collection with a single parameter and start earning from your integration immediately.
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.
SDKs
Pre-built SDKs for popular languages: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