解绑地址

POST /api/v1/unbindAddress

  • 说明: 用户解除已经绑定的地址

  • Header

Field
Type
Remarks

ApiKey

String

从管理员获取的ApiKey

Authorization

String

Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回

  • Request Parameters

Field
Type
Remarks

address

String

web3 address

  • Request Example

curl  POST 'https://api.relationlabs.ai/api/v1/unbindAddress' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: bearer eyJhbGciOiJFUzI1NiJ9.eyJqdGkiOiIxNDUwM2VlYjhhMTk0OWE1YWMzODQ1NGM2YjQwZGExNyIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2MTMyNzUxNSwic3ViIjoiYmFmMzQta2lhYWEtYWFhYWstYWNnamEtY2FpIiwiZXhwIjoxNjYxOTMyMzE1fQ.m4CYvKS_9hhabSThIydWRMAGCWhw9S-3Vi9KZmK6fUig2edt1gkw_swkBwkeL7aUSi08RPEozjZ3iwkW-4YRZw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address":"0x9bd286ef4e3d9ec1af6c6ae9da2f0b3617deab13"
}'
  • Response Parameters

Field
Type
Remarks

code

String

返回码

desc

String

返回信息

data

Object

数据

  • Response Body

{
    "code": "0",
    "desc": "success",
    "data": null
}
  • Return Code

code
desc
Remarks

0

success

接口调用成功

11202

address is not bound

当前地址未绑定

11203

not the address holder

非当前地址的holder

Last updated