Skillpedia
واجهات API والخوادم (backend)45k · #6371

onchain-pay-open-api

ما الذي تفعله

تساعد هذه المهارة المطورين على استدعاء واجهة Binance Onchain Pay API، التي تتيح للمستخدمين شراء العملات الرقمية بالعملات الورقية أو إرسالها إلى محفظة خارجية. وهي مخصصة للشركاء الذين يبنون ميزات دفع بالعملات الرقمية.

متى تستخدمها

  • ✓عندما تريد أن يشتري المستخدم عملة رقمية ببطاقة ويرسلها إلى محفظته.
  • ✓عندما تحتاج إلى إرسال عملة رقمية من حساب Binance إلى عنوان خارجي.
  • ✓عندما تبني تدفق جسر أو تحويل بين شبكات البلوكتشين المختلفة.

رابط المهارة

https://github.com/ccxt/ccxt/blob/master/.agents/skills/onchain-pay-open-api/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/ccxt/ccxt/blob/master/.agents/skills/onchain-pay-open-api/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“ساعدني في استدعاء واجهة Onchain Pay للحصول على عرض سعر لشراء USDT بالبطاقة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

توقّع المهارة كل طلب API بتوقيع RSA SHA256 ليكون موثقًا، وترشدك عبر نقاط النهاية بالترتيب.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Binance Onchain-Pay Open API Skill

Call Binance Onchain-Pay Open API endpoints with automatic RSA SHA256 request signing.

Use Cases & Scenarios

This skill is designed for the following scenarios:

1. 💳 Fiat-to-Crypto Purchase & Send

When to use: User wants to buy crypto with fiat currency and send directly to an external on-chain wallet address

  • Buy USDT with USD/EUR/TWD using credit card → Send to MetaMask address on BSC
  • Purchase BTC with Google Pay → Transfer to hardware wallet
  • Buy USDC with P2P → Send to DeFi protocol contract address

Key APIs: trading-pairs → payment-method-list → estimated-quote → pre-order

2. 🔄 Direct Crypto Transfer (Send Primary)

When to use: User has crypto in Binance account and wants to send to external address

  • Send existing USDT from Binance Spot to friend's wallet address
  • Transfer ETH to Uniswap contract for trading
  • Move crypto from Binance to self-custodial wallet (Trust Wallet, Ledger, etc.)

Key APIs: pre-order with SEND_PRIMARY customization

3. 🔗 Cross-Chain Bridge Operations

When to use: User needs to buy crypto on one chain and transfer to another network

  • Buy USDC on Ethereum → Bridge to Polygon for lower fees
  • Purchase tokens on BSC → Transfer to Base network
  • Fiat to crypto on Solana → Send to Arbitrum for DeFi

Key APIs: crypto-network → pre-order with network selection

4. 🏪 Merchant Payment Integration

When to use: Integrate crypto payment gateway for e-commerce or services

  • Accept fiat payments and auto-convert to crypto
  • Enable "Pay with Crypto" checkout flow
  • Process subscription payments with crypto

Key APIs: pre-order with externalOrderId tracking

5. 🤖 Smart Contract Interaction (Onchain-Pay Easy)

When to use: Buy crypto and execute smart contract in one transaction

  • Buy USDT and deposit to lending protocol
  • Purchase tokens and stake in DeFi pool
  • Fiat on-ramp directly to GameFi or NFT marketplace

Key APIs: pre-order with ON_CHAIN_PROXY_MODE customization

6. 📊 Query & Monitoring

When to use: Check order status, available networks, or payment methods

  • Monitor order processing status (pending, completed, failed)
  • List supported fiat currencies and cryptocurrencies
  • Check available payment methods for specific country/amount
  • Verify network fees and limits

Key APIs: order, crypto-network, trading-pairs, payment-method-list


Quick Reference

Endpoint API Path Required Params Optional Params
Payment Method List (v1) papi/v1/ramp/connect/buy/payment-method-list fiatCurrency, cryptoCurrency, totalAmount, amountType network, contractAddress
Payment Method List (v2) papi/v2/ramp/connect/buy/payment-method-list (none) lang
Trading Pairs papi/v1/ramp/connect/buy/trading-pairs (none) (none)
Estimated Quote papi/v1/ramp/connect/buy/estimated-quote fiatCurrency, requestedAmount, payMethodCode, amountType cryptoCurrency, contractAddress, address, network
Pre-order papi/v1/ramp/connect/buy/pre-order externalOrderId, merchantCode, merchantName, ts fiatCurrency, fiatAmount, cryptoCurrency, requestedAmount, amountType, address, network, payMethodCode, payMethodSubCode, redirectUrl, failRedirectUrl, redirectDeepLink, failRedirectDeepLink, customization, destContractAddress, destContractABI, destContractParams, affiliateCode, gtrTemplateCode, contractAddress
Get Order papi/v1/ramp/connect/order externalOrderId (none)
Crypto Network papi/v1/ramp/connect/crypto-network (none) (none)
P2P Trading Pairs papi/v1/ramp/connect/buy/p2p/trading-pairs (none) fiatCurrency

How to Execute a Request

Step 1: Gather credentials

Use the default account (prod) unless the user specifies otherwise. You need:

  • BASE_URL: API base URL
  • CLIENT_ID: Client identifier
  • API_KEY: The sign access token
  • PEM_PATH: Absolute path to the RSA private key PEM file

Use the account marked (default) in .local.md.

Step 2: Build the JSON body

Build a compact JSON body from user-specified parameters. Remove any parameters the user did not provide.

IMPORTANT: Address and Network Validation

  • address (destination wallet address) and network (blockchain network) are REQUIRED for all pre-order requests
  • If the user has configured Default Address and `Default Net
الأسئلة الشائعة

ما الترتيب المعتاد للاستدعاءات؟

تقترح المهارة فحص أزواج التداول، ثم طرق الدفع، ثم عرض سعر تقديري، ثم الطلب المسبق (pre-order).

هل توقّع الطلبات تلقائيًا؟

نعم. تقول المهارة إنها تضيف توقيع طلبات RSA SHA256 تلقائيًا.

هل تستطيع التعامل مع التحويلات إلى شبكة أخرى؟

نعم. تغطي المهارة اختيار شبكة العملة الرقمية في خطوة الطلب المسبق للتدفقات عبر السلاسل.

التفاصيل

الوصف الأصلي من المؤلف

Binance Onchain Pay enables users to buy cryptocurrency with fiat (e.g., EUR, USD) or send existing crypto from their Binance account directly to any external on-chain wallet address in a single flow—no manual withdrawal needed. Enables partners to integrate crypto buying services: - payment-method-list: Get available payment methods (Card, P2P, Google Pay, Apple Pay, etc.) with limits for a fiat/crypto pair - trading-pairs: List all supported fiat currencies and cryptocurrencies - estimated-quote: Get real-time price quote including exchange rate, fees, and estimated crypto amount - pre-order

repo: ccxt/ccxt

الشعبية

نجوم GitHub
45k
الترتيب
#6371
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة