Account API

Account assert

POST /merchant/core/mcb/account/info

Request

Param
Type
Require
Remark

Response

Param
Type
Require
Remark

accountId

Long

true

Account ID

currency

String

true

Currency

totalBalance

BigDecimal

true

Total Balance

availableBalance

BigDecimal

true

Available balance

frozenBalance

BigDecimal

true

Freeze Balance

digital

Long

true

Digital

Example Response

{
    "success": true,
    "code": 200,
    "msg": "Success",
    "data":
    [
        {
            "accountId": 59131,
            "currency": "USD",
            "totalBalance": "100",
            "availableBalance": "100",
            "frozenBalance": "0",
            "digital": 6
        }
    ]
}

Wallet Deposit

Call this interface to place an order for wallet recharge. It will return the order number, wallet address (currently only supports trc20-usdt), and the amount to be recharged.

POST /merchant/core/mcb/account/walletDeposit

Request

Param
Type
Required
Remark

chain

String

false

Network chain. default:TRC20

amount

BigDecimal

true

deposit amount

Response

Param
Type
Required
Remark

orderNo

String

true

Platform order number

userInputDepositAmount

BigDecimal

true

The deposit amount input by the user

actualDepositAmount

BigDecimal

true

The actual amount to be recharged. A decimal may be generated based on userInputDepositAmount

currency

String

true

currency

chain

String

true

Network chain

toAddress

String

true

Deposit address

createTime

Long

true

Order time. Timestamp

expireSecond

Long

true

Validity period (unit: seconds)

Example Response

{
    "success": true,
    "code": 200,
    "msg": "Success",
    "data":
    {
        "orderNo": "CND1896547520597221376",
        "userInputDepositAmount": "20",
        "actualDepositAmount": "20.0377",
        "currency": "USDT",
        "chain": "TRC20",
        "toAddress": "TF9fZHD27TmEznSRHcirWkXj2asg24kl3jg",
        "createTime": 1741007139000,
        "expireSecond": 10800
    }
}

Wallet Deposit Transaction

POST /merchant/core/mcb/account/walletDepositTransaction

Request

Param
Type
Required
Remark

pageNum

Long

true

Current page. Default: 1

pageSize

Long

true

Number of pages per page. Default: 10; Maximum: 100

orderNo

String

false

Order number

fromAddress

String

false

Source address

toAddress

String

false

Target address

txId

String

false

txId

status

String

false

Status wait_process: Wait process;

processing: Processing; success: Success; fail: Failed;

startTime

Long

false

Order start time. Millisecond timestamp

endTime

Long

false

Order end time. Millisecond timestamp

Response

Param
Type
Required
Remark

orderNo

String

true

Order number

currency

String

true

Currency. Example: USDT

receivedAmount

BigDecimal

false

Received amount

feeRate

BigDecimal

true

Deposit fee rate

feeRateAmount

BigDecimal

true

Deposit fee rate amount

fixedFee

BigDecimal

true

Fixed deposit fee amount

needDepositTxAmount

BigDecimal

true

Order Amount

txAmount

BigDecimal

false

User on-chain recharge amount

chain

String

true

Chain. Example: TRC20

fromAddress

String

false

Source address

toAddress

String

true

Target address

txId

String

false

txId

block

Integer

false

Block Height

confirmTime

Long

false

Transaction confirmation time on the chain. Millisecond timestamp

status

String

true

Status wait_process: Wait process;

processing: Processing; success: Success; fail: Failed;

remark

String

false

Remark

createTime

Long

false

Order create time.

Millisecond timestamp

Example Response

{
    "success": true,
    "code": 200,
    "msg": "Success",
    "data":
    {
        "total": 24,
        "records":
        [
            {
                "orderNo": "CND1833734004559863808",
                "currency": "USDT",
                "receivedAmount": "0.0001",
                "feeRate": "0.5",
                "fee": "0",
                "fixedFee": "0",
                "totalFee": "0",
                "needDepositTxAmount": "11.0013",
                "txAmount": "0.0001",
                "chain": "TRC20",
                "fromAddress": "THEm2425XoneUL8242535AuC1242dhp",
                "toAddress": "TF9fZ243agagaSRHcirWkXy3zb25sgagaga",
                "txId": "aac16ff76b12e745f0e40a84fcb2979agawgagagawgaagaw6a7d81834ffc8",
                "block": 65628817,
                "confirmTime": 1727534835000,
                "status": "success",
                "remark": "Chain deposit",
                "createTime": 1727932030000
            }
        ]
    }
}

Last updated