Skip to main content
The NEAR Intents SDK provides tools for intent execution, deposits, withdrawals, and interacting with various bridge implementations across multiple blockchains. For a higher-level API focused on cross-chain swaps, check out the 1Click Swap API and its SDK libraries for TypeScript, Go, and Rust.
The Intents SDK provides low-level functionality for interacting with NEAR Intents, check out the 1Click Swap API for a higher-level API focused on cross-chain swaps

Using the SDK

1

Install the SDK

2

Initialize the SDK

3

Process a withdrawal

The most common use case — withdraw funds from NEAR Intents to an external chain:
4

Or execute a custom intent

For advanced use cases beyond withdrawals, use the lower-level signAndSendIntent method:
Use processWithdrawal for withdrawals and signAndSendIntent for custom intent logic. The withdrawal method handles fee estimation, validation, and completion tracking automatically.

Next steps

Explore the Github Repository for the Intents SDK to learn about asset identifiers, intent signers, withdrawals, withdrawal routes, and intent management.