Access preparation

Environmental preparation

Access the merchant and obtain client_id and API URL.

Key pair

  1. Generate an RSA 2048-bit key pair.
  2. Upload a public key on the management terminal.

Global configuration

Headers add the Content-Type field with the value application/json; specify the request body as json format.

API authentication

Use the private key to generate the algorithm for RS256 with a validity of 5 seconds JWT Token.

Headers add the token field, with the value being the generated JWT Token.

Response data

In the interface return data, code is the status code, message is the prompt message, and data is the return data.

Response Example
{
    "code": 200,
    "message": "Success",
    "data": {
        "id": 10,
        "eth_address": "0x435c9d6a0e8a39acF9aB671B362c185f4C57b997",
        "trx_address": "TFFgDPWJK59Z3bLcgDKy1jfAaStzutcp3y",
        "sol_address": "7mSwjgafErtGVyc8C8YKtSubhjWUafbHiGxxnfiwJtbx",
        "admin_id": 1000001,
        "created_at": "2024-07-09T10:43:16+08:00",
        "updated_at": "2024-07-09T10:43:16+08:00"
      }
}

Chain type

Chain type Description
1 ETH
56 BSC
195 TRX
137 POLY