Customer/Wallet

Add Wallet

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.add Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringRequired

Wallet Currency

chainNamestringRequired

Chain Name

addressstring · max: 150Required

Wallet Address

remarkstring · max: 100Required

Wallet Note

verifyCodestringRequired

Verification code

sendTokenstringRequired

Verification code sending ticket

phoneAreastringRequired

Phone area code

phonestringRequired

Phone Number

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.add
POST /api/global/customer.app.CustomerWalletWebApiService.add HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 144

{
  "currency": "text",
  "chainName": "text",
  "address": "text",
  "remark": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "phoneArea": "text",
  "phone": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}
Deprecated

Add Wallet (MFA)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.addV1v1v2 Accessible after login

If the customer enables Google Authenticator (MFA), the Google Authenticator code (googleCode) in the input parameters is required, At the same time, the user does not need to enter a phone number or email, If both phone and email exist, the phone number is verified first

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: zh-CN
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringRequired

Wallet Currency

chainNamestringRequired

Chain Name

addressstring · max: 150Required

Wallet Address

remarkstring · max: 100Required

Wallet Note

verifyCodestringRequired

Verification code

sendTokenstringRequired

Verification code sending ticket

googleCodestringOptional

Google Verification Code

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.addV1v1v2
POST /api/global/customer.app.CustomerWalletWebApiService.addV1v1v2 HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "currency": "text",
  "chainName": "text",
  "address": "text",
  "remark": "text",
  "verifyCode": "text",
  "sendToken": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

Delete Wallet

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.delete Access after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
idinteger · int64 · min: 1Optional

Wallet Id

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.delete
POST /api/global/customer.app.CustomerWalletWebApiService.delete HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 8

{
  "id": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

Set default wallet (H5 does not use this interface)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.updateWallet Accessible after login

Body
idinteger · int64 · min: 1Optional

Wallet Id

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.updateWallet
POST /api/global/customer.app.CustomerWalletWebApiService.updateWallet HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 8

{
  "id": 1
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

Wallet List

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.walletList Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringOptional

Wallet Currency

chainNamestringOptional

Chain Name

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.walletList
POST /api/global/customer.app.CustomerWalletWebApiService.walletList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "currency": "text",
  "chainName": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-gndw9-43s45-j1x875-59h9d-1677576513",
  "code": "0",
  "data": [
    {
      "chainName": "Ethereum(ERC20)",
      "address": "234",
      "currency": "USDC",
      "remark": "",
      "id": 14676,
      "defaultType": 0
    }
  ],
  "bizCode": "",
  "tm": 3021714,
  "msgParams": null,
  "ok": true
}

Add Withdrawal Address (MFA)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.addWithdrawalAddressMFA Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringRequired

Currency

chainNamestringRequired

Withdrawal Network

addressstring · max: 150Required

Withdrawal Address

remarkstring · min: 4 · max: 40Required

Withdrawal Note

typeinteger · int32 · min: 1 · max: 2Optional

Type: 1 Email, 2 Phone Number

verifyCodestringRequired

Verification code, send verification code interface bizType=EMAIL_LOGINED_VERIFICATION_CODE (email), SMS_LOGINED_VERIFICATION_CODE (phone)

sendTokenstringRequired

Verification code sending ticket

googleCodestringOptional

Google Verification Code

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.addWithdrawalAddressMFA
POST /api/global/customer.app.CustomerWalletWebApiService.addWithdrawalAddressMFA HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 139

{
  "currency": "text",
  "chainName": "text",
  "address": "text",
  "remark": "text",
  "type": 1,
  "verifyCode": "text",
  "sendToken": "text",
  "googleCode": "text"
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

Query withdrawal address list

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.withdrawalAddressList Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringRequired

Currency

chainNamestringRequired

Withdrawal Network

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.withdrawalAddressList
POST /api/global/customer.app.CustomerWalletWebApiService.withdrawalAddressList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "currency": "text",
  "chainName": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-gndw9-43s45-j1x875-59h9d-1677576513",
  "code": "0",
  "data": [
    {
      "chainName": "Ethereum(ERC20)",
      "address": "234",
      "currency": "USDC",
      "remark": "",
      "id": 14676,
      "defaultType": 0
    }
  ],
  "bizCode": "",
  "tm": 3021714,
  "msgParams": null,
  "ok": true
}

Query withdrawal address list (grouped)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.withdrawalAddressGroupList Accessible after login

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
currencystringOptional

Currency

Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.withdrawalAddressGroupList
POST /api/global/customer.app.CustomerWalletWebApiService.withdrawalAddressGroupList HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "currency": "text"
}
200Success
{
  "msg": "Success",
  "fail": false,
  "trace": "x-gndw9-43s45-j1x875-59h9d-1677576513",
  "code": "0",
  "data": [
    {
      "chainName": "Ethereum(ERC20)",
      "address": "234",
      "currency": "USDC",
      "remark": "",
      "id": 14676,
      "defaultType": 0
    }
  ],
  "bizCode": "",
  "tm": 3021714,
  "msgParams": null,
  "ok": true
}

Last updated