SparkPay OpenAPI Docs
English
  • English
  • 简体中文
English
  • English
  • 简体中文
  1. Must-Read for Integration
  • Product Introduction
  • Quick Guide
    • Integration Preparation
    • Interface Signature Description
  • Must-Read for Integration
    • Interface Rules
    • Asynchronous Notification
    • Interface Error Codes
    • Network and Currency
  • Integration Scenarios
    • Payment
    • Close Order
  • API List
    • Payment Order Creation
      POST
    • Payment Order Query
      GET
    • Payment Order Closure
      POST
    • Payment Order Creation(Pro Edition)
      POST
    • Payment Order Query(Pro Edition)
      GET
  • Frequently Asked Questions
    • Notification Related Issues
    • Redirect Failure Issues
    • Interface Error Issues
    • Test Token Acquisition/Test Network Connection
  • Integration Example
    • Interface Signature Example - PHP
    • Interface Signature Example - Postman
  • Version Notes
    • Version Notes
  1. Must-Read for Integration

Network and Currency

When merchants use the open-api to place orders, they need to provide information about the receiving currency and the receiving network. The receiving currency is a required field, and it must be passed using the currency codes provided below.
Currency CodeContract AddressNetwork
ETH-Ethereum
USDT0xdac17f958d2ee523a2206206994597c13d831ec7Ethereum
USDC0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48Ethereum
POL-Polygon
USDT0xc2132d05d31c914a87c6611c10748aeb04b58e8fPolygon
USDC0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359Polygon
IRIS0x1D1530e3A3719BE0BEe1abba5016Cf2e236f3277IRISnet
BNB-BNB Smart Chain
USDT0x55d398326f99059ff775485246999027b3197955BNB Smart Chain
USDC0x8ac76a51cc950d9822d68b83fe1ad97b32cd580dBNB Smart Chain
Network EnumNetwork Name
2Ethereum
3BNB Smart Chain
4Polygon
5IRISnet

Example#

When using Unified Payment Page, the receive_network field is optional. If multiple networks are required, they should be joined with commas.
For example, if the merchant only wants to receive USDT on the Polygon network, the value should be "4".
When using Unified Payment Page_PRO, the available_payment_currency_networks field is optional.
If the merchant wishes to receive USDT (on Polygon and Ethereum), IRIS (on IRISnet), and ETH (on all supported networks), the parameter should be configured as follows:
{
    "available_payment_currency_networks": [
        {
            "currency": "USDT",
            "networks": [
                2,
                4
            ]
        },
        {
            "currency": "IRIS",
            "networks": [
                5
            ]
        },
        {
            "currency": "ETH",
            "networks": [

            ]
        }
    ]
}

Note#

The open-api will verify whether the amount of the payment currency, calculated based on the exchange rate on each network, is greater than or equal to the minimum service fee. The final payment request will only include the networks and currencies that meet this condition. Those that do not will be filtered out. If none meet the criteria, the API call will return an error.
Modified at 2025-05-06 09:30:58
Previous
Interface Error Codes
Next
Payment
Built with