Skip to content
Skillpedia
APIs & servers (backend)45k · #6371

onchain-pay-open-api

What it does

This skill helps developers call the Binance Onchain Pay API, which lets users buy crypto with fiat or send it to an outside wallet. It is for partners building crypto payment features.

When to use it

  • ✓When you want to let a user buy crypto with a card and send it to their wallet.
  • ✓When you need to send crypto from a Binance account to an external address.
  • ✓When you are building a bridge or transfer flow across blockchain networks.

Skill link

https://github.com/ccxt/ccxt/blob/master/.agents/skills/onchain-pay-open-api/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/ccxt/ccxt/blob/master/.agents/skills/onchain-pay-open-api/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

“Help me call the Onchain Pay API to get a quote for buying USDT with a card.”

5 new skills a week. 1 minute to read.

How it works

The skill signs each API request with an RSA SHA256 signature so it is authenticated, and it guides you through the endpoints in order.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What order do the calls usually follow?

The skill suggests checking trading pairs, then payment methods, then an estimated quote, and then a pre-order.

Does it sign requests automatically?

Yes. The skill says it adds RSA SHA256 request signing automatically.

Can it handle transfers to another network?

Yes. The skill covers choosing a crypto network within the pre-order step for cross-chain flows.

Details

Original description by the author

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

Popularity

GitHub stars
45k
Ranking position
#6371
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills