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:- Resolve
assetIds withGET /v0/tokens. - Request a quote with
POST /v0/quote. - Complete the deposit and track status with
GET /v0/status.
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
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.
See Asset support.
Deposit — destination-chain wallet
Use this when the user should receive receipt tokens on the protocol’s chain. Setrecipient 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. Setrecipient 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.
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 asamount.
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.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:- Use List yields to find the yield that matches your receipt token (for example by protocol or token symbol).
- Use Get a yield for that yield’s APY and other metadata.
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.
Related
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