Qchain
English
English
  • KNOWLEDGE BASE
    • Introduction to Qchain
    • Getting Started
    • How to run QChain node?
    • Instructions
      • How to install QNode on Linux
      • How to send tokens to staking
      • How to import an account
      • How to change the storage size
      • How to install Qnode on Andriod and register an account.
      • How to create a repository
      • How to transfer tokens between accounts
      • How to create your own token
      • How to send a file to the storage
    • Video instructions
      • How to import an account into Qchain node
      • Qchain. Import and Export of private key
      • Qchain installation Mac OS
      • Installation Qchain Node on Android
      • How to install a Qnode on Windows and register an account
    • Our tokens
    • Our products
    • Developing
      • Node API
      • Node account API
        • Export and import operations
        • Registering a new user
        • Registering a new user (2)
        • User login
        • Getting an address
        • Getting a balance
        • Getting a private key
        • Import a private key
        • Transfer
        • Request for transfer status
        • Request for list of transfers
        • Staking-Stake
        • Staking-Unstake
      • QTreasure API
        • Registration
        • List of payment gateways
        • Status payment
        • Payments
        • Purchase
        • Transaction fields
        • Transaction types
        • Transaction statuses
        • Callback response
Powered by GitBook
On this page
  1. KNOWLEDGE BASE
  2. Developing
  3. QTreasure API

List of payment gateways

Address https://api-qtreasure.qchain.space/v1/gates/"type"

GET request

The type parameter in the request address is responsible for the type of payment gateways:

1 - Gateways for purchase

2 - Gateways for sale

Example https://api-qtreasure.qchain.space/v1/gates/1

Response:

{
  "success": true,
  "gates": [
    {
      "title": "Tether Tron TRC-20",
      "currency": "USDT-TRC20",
      "rate": 1,
      "min_sum": 10,
      "max_sum": 100000,
      "fee": 1,
      "usdrate": 1,
      "icon": "https://api-qtreasure.qchain.space/storage/source/usdttrc20.png"
    }
  ]
}

Gateway fields:

title - gateway name

currency - gateway currency

rate - QSTN rate in relation to USDT-TRC20

min_sum - minimum amount

max_sum - maximum amount

fee - commission in USDT-TRC20

usdrate - the exchange rate of USDT-TRC20 against the dollar

icon - full address of the currency icon

Response with an error:

{
  "success": false,
  "error": "There are no payment gateways available"
}
PreviousRegistrationNextStatus payment

Last updated 1 year ago