NEAR Intents: 1Click Swap API
REST API for cross-chain swaps powered by NEAR Intents
1Click Swap is a REST API that automates routing and settlement on NEAR Intents. It requests quotes from Market Makers, constructs the swap, and tracks execution. Assets move to a quote-specific deposit address and settle on-chain; 1Click does not take custody of them.
This REST API abstracts the complexity of intent creation, solver coordination, and transaction execution.
[!WARNING]
By using the 1Click Swap API, you agree to the 1Click Terms of Service.
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.
Ready to Dive In?
Step-by-step tutorial to make your first swap in under 10 minutes
Learn how to generate API keys and authenticate your requests
Explore our SDK libraries for TypeScript, Go, and Rust
Learn how to set up fee collection for your swaps
Offer multichain yield through the 1Click Swap API
Offer a swap at the user's price through the 1Click Swap API
Programmatic access to historical 1Click Swap transactions
Learn how NEAR Intents proactively manages suspicious fund flows, transaction risk, and security posture across swaps