binance avatar

Onchain Pay Open Api

This is Binance's fiat-to-crypto onramp API with automatic RSA SHA256 request signing built in. You can let users buy crypto with credit cards, Google Pay, or P2P and send it directly to an external wallet address without manual withdrawals. The interesting bit is the ON_CHAIN_PROXY_MODE that lets you buy and execute a smart contract call in one flow, so you could theoretically go from fiat to staked-in-DeFi without touching a CEX interface. The skill handles all the signing complexity through a bash script, though you'll need your own Binance merchant credentials and PEM key. Eight endpoints cover everything from payment method discovery to order tracking across multiple chains.

skills.sh installs
6K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add binance/binance-skills-hub --skill onchain-pay-open-api --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/binance/binance-skills-hub
Categories
Backend & APIs, Finance & Trading, Web3 & Blockchain
First seen
Apr 16, 2026

More from binance/binance-skills-hub

All 28
1affaan-m avatarmysql-patternsaffaan-m/eccMySQL and MariaDB schema, query, indexing, transaction, replication, and connection-pool patterns for production backends.5.7Kskills.sh installs
2affaan-m avatarapi-connector-builderaffaan-m/eccBuild a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integration without inventing5.5Kskills.sh installs
3affaan-m avatarmcp-server-patternsaffaan-m/everything-claude-codemcp server patterns4.6Kskills.sh installs
4wordpress avatarwp-interactivity-apiwordpress/agent-skillsUse when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule 4.5Kskills.sh installs
5ghostsecurity avatarghost-proxyghostsecurity/skillsStarts and controls the reaper MITM proxy to capture, inspect, search, and replay HTTP/HTTPS traffic between clients and servers. Capabilities include starting/4.2Kskills.sh installs
6yaklang avatarapi-secyaklang/hack-skillsEntry P1 category router for API security. Use when choosing between API recon, authorization, token abuse, and hidden-parameter workflows before any deeper API4.1Kskills.sh installs