onchain-pay-open-api
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: Create a buy order and get redirect URL to Binance payment flow - order: Query order status and details (processing, completed, failed, etc.) - crypto-network: Get supported blockchain networks with withdraw fees and limits - p2p/trading-pairs: List P2P-specific trading pairs
What this skill does
# 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/gray/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 Network` in `.local.md`, use them automatically - If not configured or not provided by user, ASK the user to provide both values before proceeding ### Step 3: Sign and call using the bundled script ```bash bash <skill_path>/scripts/sign_and_call.sh \ "<BASE_URL>" \ "<API_PATH>" \ "<CLIENT_ID>" \ "<API_KEY>" \ "<PEM_PATH>" \ '<JSON_BODY>' ``` ### Step 4: Return results Display the JSON response to the user in a readable format. --- ## Authentication See [`references/authentication.md`](./references/authentication.md) for full signing details. Summary: 1. Payload = `JSON_BODY` + `TIMESTAMP` (milliseconds) 2. Sign payload with RSA SHA256 using PEM private key 3. Base64 encode the signature (single line) 4. Send as POST with headers: `X-Tesla-ClientId`, `X-Tesla-SignAccessToken`, `X-Tesla-Signature`, `X-Tesla-Timestamp`, `Content-Type: application/json` --- ## Parameters Reference ### Payment Method List v1 (`buy/payment-method-list`) | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | fiatCurrency | string | Yes | Fiat currency code (e.g., `USD`, `EUR`, `BRL`, `UGX`) | | cryptoCurrency | string | Yes | Crypto currency code (e.g., `BTC`, `USDT`, `USDC`, `SEI`) | | totalAmount | number | Yes | Amount value | | amountType | number | Yes | `1` = fiat amount, `2` = crypto amount | | network | string | No | Blockchain network (e.g., `BSC`, `ETH`, `SOL`, `BASE`, `SEI`) | | contractAddress | string | No | Token contract address (required for non-native tokens) | ### Payment Method List v2 (`v2/buy/payment-method-list`) Get all available payment methods without specifying fiat/crypto parameters. Simplified version of v1. | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | lang | string | No | Language code for localized payment method names (e.g., `en`, `cn`, `es`) | **Differences from v1**: - **Simpler**: No need to specify fiatCurrency, cryptoCurrency, or amount - **Comprehensive**: Returns all available payment methods for the merchant - **Use case**: Useful for displaying all options before user input **Response Format**: Same as v1, returns list of payment methods with their limits and properties. ### Estimated Quote (`buy/estimated-quote`) | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | fiatCurrency | string | Yes | Fiat currency code | | cryptoCurrency | string | No | Crypto currency code (optional if contractAddress provided) | | requestedAmount | number | Yes | Amount value | | payMethodCode | string | Yes | Payment method (e.g., `BUY_CARD`, `BUY_GOOGLE_PAY`, `BUY_P2P`, `BUY_WALLET`) | | amountType | number | Yes | `1` = fiat amount, `2` = crypto amount | | network | string | **Yes*** | Blockchain network (can use default from `.local.md`) | | contractAddress | string | No | Token contract address | | address | string | **Yes*** | Destination wallet address for receiving crypto | \* Recommended: These parameters should be provided. If not specified by user, check `.local.md` for defaults. If no defaults exist, ask user before proceeding. ### Pre-order (`buy/pre-order`) Create a buy pre-order and return the redirect link for payment. | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | externalOrderId | string | Yes | Partner's unique order ID (must be unique) | | merchantCode | string | Yes | Merchant code (e.g., `connect-gray`) | | m
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only โ no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.