Skip to main content
Earn lets wallets and apps route users into third-party yield protocols through the 1Click Swap API. The user pays a supported asset; NEAR Intents coordinates execution; the user receives fungible receipt tokens (for example vault shares) that represent the position.
NEAR Intents does not run these yield protocols, set their APY, or guarantee principal. Protocols are operated by independent providers. See §7 Special asset types.

Integration model

Earn uses the standard 1Click lifecycle:
  1. Resolve assetIds with GET /v0/tokens.
  2. Request a quote with POST /v0/quote.
  3. Complete the deposit and track status with GET /v0/status.
Deposit quotes use a payment asset as originAsset and a receipt token as destinationAsset. Withdraw quotes reverse that. Use the same swap types as other 1Click quotes. These fields control where value is taken from and where it is delivered: Deposit and withdraw examples below cover both delivery options.

Yield and receipt assets

Only instruments that appear in this list and return quotes are available for Earn via 1Click. Look up the receipt token and payment asset by symbol (or other fields you care about) and use the returned assetId values in quotes. You can request additional protocol support. Protocols already listed in the Yield.xyz DeFi yields catalog are usually faster to add than those outside it. For the examples on this page we use two vault-share symbols that are listed today — TLO and gtUSDCp — plus USDC as the payment asset. Treat the assetId strings in the snippets as illustrative snapshots; always take current IDs from /v0/tokens before you ship.
Listings and liquidity can change. A quote may return No liquidity available or reject an unsupported delivery mode for a given asset.
See Asset support.

Deposit — destination-chain wallet

Use this when the user should receive receipt tokens on the protocol’s chain. Set recipient to their address on that chain and recipientType to DESTINATION_CHAIN. Highlighted lines are the delivery fields. Example below: Ethereum USDC → TLO, delivered to an Ethereum address. Resolve both assetIds from /v0/tokens (symbols USDC on eth, TLO on eth).
amount 100000000 is 100 USDC (6 decimals). The same pattern works with other listed receipt tokens that quote for destination-chain delivery.

Deposit — Intents balance

Use this when the user should hold receipt tokens in Intents (bridged to NEAR) instead of on the protocol’s chain. Set recipient to their Intents account and recipientType to INTENTS. Highlighted lines are what differs from destination-chain delivery. Example below: Ethereum USDC → TLO, held in Intents. Same symbols as above; only delivery fields change.
You can use the same Intents delivery with other listed shares (for example gtUSDCp). Replace recipient, refundTo, and the JWT as needed. After the quote, deposit and track status as in the Quickstart.

Withdraw — payout to destination-chain wallet

Quote from the receipt token back to a payment asset. Use the user’s share balance as amount. Example below: redeem TLO held in Intents (depositType: INTENTS) to Ethereum USDC on a chain wallet. amount 10000000000 is 100 TLO at 8 decimals — confirm decimals from /v0/tokens. Highlighted lines are the payout delivery fields.

Withdraw — payout to Intents balance

Use this when the payout should stay in Intents. Same redeem as above; only delivery fields change. Highlighted lines are what differs.
Quote from the balance you intend to redeem; do not assume a fixed share-to-underlying rate. The same shapes work for other listed shares such as gtUSDCp. If the shares sit on the origin chain, set depositType (and matching refund fields) to ORIGIN_CHAIN and keep choosing payout with recipientType as above.

APY

The 1Click API does not return protocol metadata such as APY. When you show rates in your UI, load them from the Yield.xyz aggregator API:
  1. Use List yields to find the yield that matches your receipt token (for example by protocol or token symbol).
  2. Use Get a yield for that yield’s APY and other metadata.
Yield.xyz data is third-party; it is not returned or guaranteed by 1Click.

Fees and disclosures

  • 1Click platform fees apply as for other quotes (Fee configuration, Fees).
  • Third-party protocols may charge their own fees.
  • Yield, share price, and principal are not guaranteed by NEAR Intents.
  • End-user disclosures for yield assets should align with Terms of Service §7.

Making a request

Quote, deposit, and status for 1Click swaps

Swap types

EXACT_INPUT, EXACT_OUTPUT, and deposit handling

Asset support

Live token catalog from the 1Click API

Terms of Service

Yield-bearing assets and Earn