near-intents
यह क्या करती है
यह स्किल NEAR Intents 1Click API से चेनों के पार टोकन स्वैप को कवर करती है, जो EVM चेन, Solana, NEAR, TON, Stellar और Tron पर काम करती है। यह swap widgets, bridge पेज या मल्टी-चेन ट्रांसफ़र स्क्रिप्ट बनाने वाले डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब आप ऐसा swap widget बनाना चाहते हों जो चेनों के बीच टोकन ले जाए।
- ✓जब आपको अलग-अलग ब्लॉकचेन के बीच ट्रांसफ़र के लिए bridge इंटरफ़ेस चाहिए।
- ✓जब आपको सर्वर स्क्रिप्ट चाहिए जो स्वैप कोट लेकर उसकी स्थिति ट्रैक करे।
Skill का लिंक
https://github.com/internet-court/internet-court-skill/blob/main/vendored/near/near-intents/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी साइट पर एक swap widget चाहिए, जो उपयोगकर्ताओं को Solana और Ethereum के बीच टोकन ले जाने दे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट समर्थित टोकन की सूची लेता है, कोट माँगता है, और फिर स्रोत चेन पर deposit लेन-देन बनाता है। API deposit पता देता है और परिणामी टोकन अपने-आप पहुँचाता है, और स्वैप पूरा होने तक एजेंट स्थिति जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
- Use
assetIdfrom /v0/tokens - never construct manually dry: true= preview only,dry: false= get deposit address (valid ~10 min)- Poll status until terminal:
SUCCESS,FAILED,REFUNDED,INCOMPLETE_DEPOSIT - Chain-to-chain is default -
depositTypeandrecipientTypedefault to chain endpoints
Index
Examples (HIGH)
- react-swap-widget - Minimum viable React swap implementation with wagmi
- server-example - Node.js script for server-side swaps
API Reference (CRITICAL)
- api-tokens - Fetch supported tokens, cache result
- api-quote - Get swap quote, dry=true for preview, dry=false for deposit address
- api-deposit-submit - Notify API after deposit to speed up processing
- api-status - Poll until terminal state (SUCCESS, FAILED, REFUNDED)
- api-any-input-withdrawals - Query withdrawals for ANY_INPUT quotes
Chain Deposits (HIGH)
- deposit-evm - Ethereum, Base, Arbitrum, Polygon, BSC transfers
- deposit-solana - Native SOL and SPL token transfers
- deposit-near - NEP-141 token transfers via wallet selector
- deposit-ton - Native TON transfers via TonConnect
- deposit-tron - Native TRX and TRC-20 transfers
- deposit-stellar - Stellar transfers (MEMO REQUIRED)
React Hooks (MEDIUM)
- react-hooks - Reusable hooks for tokens, quotes, status polling
Advanced (LOW)
- intents-balance - Hold balances in intents.near for faster swaps
- passive-deposit - QR code flow for manual transfers
References
- concepts - Swap lifecycle, statuses, CEX warning, authentication
Resources
अक्सर पूछे जाने वाले सवाल
टोकन पहचानकर्ता कहाँ से मिलेंगे?
स्किल कहती है कि token list endpoint से assetId लें, और उसे हाथ से कभी न बनाएँ।
dry mode क्या करता है?
dry कोट केवल स्वैप का पूर्वावलोकन करता है। बिना dry कोट एक deposit पता लौटाता है, जो लगभग 10 मिनट तक मान्य रहता है।
कौन-सी चेन कवर होती हैं?
EVM चेन, Solana, NEAR, TON, Stellar और Tron।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13654
- लाइसेंस
- —
- अपडेट की गई
- 26/10/2026
कमेंट
- …
इस repository की और skills
internet-court
7.0kयह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।
genlayer-erc7710-connector
7.0kयह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।
genlayer-intelligent-contracts
7.0kयह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।
x402-erc7710
7.0kयह आपके एजेंट को हर अनुरोध पर वेब सेवा का भुगतान करने और तय सीमा के भीतर लगातार खर्च करने की व्यवस्था में मदद करती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।