Skip to main content

What is Confidential Intents

Confidential Intents is a private transaction layer built on top of NEAR Intents. You can swap and transfer tokens without the on-chain deposit and withdrawal being trackable to each other.
  • Public Intents: deposits and withdrawals can be matched to each other.
  • Confidential Intents: deposits and withdrawals cannot be tracked to each other.

Integration paths

There are two ways to request a confidential swap. Most partners only need the first.

Foreign-to-foreign (most partners)

Run a normal ORIGIN_CHAINDESTINATION_CHAIN swap and set the confidentiality parameter to basic or advanced. You do not need the CONFIDENTIAL_INTENTS type fields or signed-intent execution — the user deposits and receives on external chains exactly as a standard swap.

Embedded account / wallet

When the funds already live inside a user’s Confidential Intents balance, set depositType, recipientType, and/or refundType to CONFIDENTIAL_INTENTS and authorize the swap with Signed Intent Execution. This is the advanced, wallet-style use case — integrators that keep user balances in Intents, for example near.com.
To request a foreign-to-foreign confidential quote, add confidentiality to a standard quote request. Everything else in the request/response cycle is identical to Making a Request: