客户接口/客户钱包管理

新增钱包

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.add 登录之后可以访问

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

钱包币种

chainNamestringRequired

链名称

addressstring · max: 150Required

钱包地址

remarkstring · max: 100Required

钱包备注

verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

phoneAreastringRequired

手机区号

phonestringRequired

手机号码

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

新增钱包(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.addV1v1v2 登录之后可以访问

如果客户开启谷歌验证码(MFA),则入参中的谷歌验证码(googleCode)必填, 同时,用户不用输入手机号码、邮箱, 如果手机、邮箱同时存在,优先校验手机号码

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

钱包币种

chainNamestringRequired

链名称

addressstring · max: 150Required

钱包地址

remarkstring · max: 100Required

钱包备注

verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

googleCodestringOptional

谷歌验证码

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
}

删除钱包

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.delete 登录之后可以访问

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

钱包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
}

设置默认钱包(H5未使用此接口)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.updateWallet 登录之后可以访问

Body
idinteger · int64 · min: 1Optional

钱包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
}

钱包列表

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.walletList 登录之后可以访问

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

钱包币种

chainNamestringOptional

链名称

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
}

新增提现地址(MFA)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.addWithdrawalAddressMFA 登录之后可以访问

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

币种

chainNamestringRequired

提现网络

addressstring · max: 150Required

提现地址

remarkstring · min: 4 · max: 40Required

提现备注

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

类型:1邮箱,2手机号码

verifyCodestringRequired

验证码,发送验证码接口bizType=EMAIL_LOGINED_VERIFICATION_CODE(邮箱),SMS_LOGINED_VERIFICATION_CODE(手机)

sendTokenstringRequired

验证码发送票据

googleCodestringOptional

谷歌验证码

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
}

查询提现地址列表

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.withdrawalAddressList 登录之后可以访问

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

币种

chainNamestringRequired

提现网络

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
}

查询提现地址列表(分组)

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.withdrawalAddressGroupList 登录之后可以访问

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

币种

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
}

批量新增钱包

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.batchAddByChain 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.batchAddByChain
POST /api/global/customer.app.CustomerWalletWebApiService.batchAddByChain HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "addressList": [
    {
      "chainName": "text",
      "address": "text",
      "remark": "text"
    }
  ]
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

批量更新钱包

post

version=0.0.1 bizType=customer.app.CustomerWalletWebApiService.batchUpdateByChain 登录之后可以访问

Header parameters
companyIdstringOptionalExample: {{company}}
tokenstringOptionalExample: {{LoginResult.data.token}}
langstringOptionalExample: en-US
tracestringOptionalExample: {{mock_trace}}
versionstringOptionalExample: 0.0.1
Body
Responses
200Success
application/json
post
/global/customer.app.CustomerWalletWebApiService.batchUpdateByChain
POST /api/global/customer.app.CustomerWalletWebApiService.batchUpdateByChain HTTP/1.1
Host: prewppc-3.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "addressList": [
    {
      "chainName": "text",
      "address": "text",
      "remark": "text"
    }
  ]
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": {},
  "ok": true,
  "fail": true
}

Last updated