Skip to content
Skillpedia
APIs & servers (backend)7.0k Β· #13654

near-intents

What it does

This skill covers cross-chain token swaps using the NEAR Intents 1Click API, which works across EVM chains, Solana, NEAR, TON, Stellar and Tron. It is for developers building swap widgets, bridge pages or multi-chain transfer scripts.

When to use it

  • βœ“When you want to build a swap widget that moves tokens between chains.
  • βœ“When you need a bridge interface for transfers between different blockchains.
  • βœ“When you want a server script that gets a swap quote and tracks its status.

Skill link

https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-intents/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-intents/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want a swap widget on my site that lets users move tokens between Solana and Ethereum.”

5 new skills a week. 1 minute to read.

How it works

The agent gets the list of supported tokens, requests a quote, and then builds a deposit transaction on the source chain. The API provides the deposit address and delivers the resulting token automatically, and the agent checks the status until the swap completes.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

NEAR Intents Integration

Cross-chain token swaps via 1Click REST API. Get a quote, API provides deposit addresses, you build the deposit transaction and receive the resulting token automatically.

Quick Start - Pick Your Path

Use Case Start Here
React App react-swap-widget.md - Example showing the pattern
Node.js / Script server-example.md - Example showing the pattern
API Reference api-quote.md β†’ api-tokens.md β†’ api-status.md
Chain-specific Deposits deposit-{chain}.md

Integration Flow

GET /v0/tokens β†’ POST /v0/quote (dry) β†’ POST /v0/quote (wet) β†’ Deposit TX β†’ POST /v0/deposit/submit β†’ GET /v0/status

Rule Categories

Priority Category Files
1 Examples react-swap-widget.md, server-example.md
2 API api-quote.md, api-tokens.md, api-status.md, api-deposit-submit.md
3 Deposits deposit-evm.md, deposit-solana.md, deposit-near.md, deposit-ton.md, deposit-tron.md, deposit-stellar.md
4 React Hooks react-hooks.md
5 Advanced intents-balance.md, passive-deposit.md

Critical Knowledge

  1. Use assetId from /v0/tokens - never construct manually
  2. dry: true = preview only, dry: false = get deposit address (valid ~10 min)
  3. Poll status until terminal: SUCCESS, FAILED, REFUNDED, INCOMPLETE_DEPOSIT
  4. Chain-to-chain is default - depositType and recipientType default to chain endpoints

Index

  1. Examples (HIGH)

  2. API Reference (CRITICAL)

  3. Chain Deposits (HIGH)

  4. React Hooks (MEDIUM)

    • react-hooks - Reusable hooks for tokens, quotes, status polling
  5. Advanced (LOW)

  6. References

    • concepts - Swap lifecycle, statuses, CEX warning, authentication

Resources

FAQ

Where do I get the token identifiers?

The skill says to use the assetId from the token list endpoint and never build it by hand.

What does dry mode do?

A dry quote only previews the swap. A non-dry quote returns a deposit address that is valid for about 10 minutes.

Which chains are covered?

EVM chains, Solana, NEAR, TON, Stellar and Tron.

Details

Original description by the author

Cross-chain token swap integration using NEAR Intents 1Click API. Use when building swap widgets, bridge interfaces, or multi-chain transfers across EVM, Solana, NEAR, TON, Stellar, and Tron.

repo: internet-court/internet-court-skill

Popularity

GitHub stars
7.0k
Ranking position
#13654
License
β€”
Updated
10/26/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills