request(
"GET",
"/v1/custody/guard/query_binding/",
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/guard/query_binding/',
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/guard/query_binding/", map[string]string{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
})
{
"success": true,
"result": {
"status": 6,
"pubkey": "480da241874516ca9a25b1776e2b3ce6d2d5ea184d9a83e28874e57d4a2786ea1db059aefb2093cf6665da68c5381cf401c128aa967927c3abc46c7545c90438",
"fail_reason_code": null,
"addresses": [
{
"chain_coin": "ETH",
"address": "0x123"
}
…
]
}
}
Bind Auth
Query Binding
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
guard
/
query_binding
/
request(
"GET",
"/v1/custody/guard/query_binding/",
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/guard/query_binding/',
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/guard/query_binding/", map[string]string{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
})
{
"success": true,
"result": {
"status": 6,
"pubkey": "480da241874516ca9a25b1776e2b3ce6d2d5ea184d9a83e28874e57d4a2786ea1db059aefb2093cf6665da68c5381cf401c128aa967927c3abc46c7545c90438",
"fail_reason_code": null,
"addresses": [
{
"chain_coin": "ETH",
"address": "0x123"
}
…
]
}
}
Request
CoboAuth binding code
Response
request successful or failed
Show object
Show object
Binding code status
| Status | Code |
|---|---|
| STATUS_NEW | 1 |
| STATUS_CHANGE_NEW | 2 |
| STATUS_WAIT_SELF_CONFIRM | 3 |
| STATUS_WAIT_CONFIRM | 4 |
| STATUS_WAIT_ACTIVE | 5 |
| STATUS_ACTIVE | 6 |
| STATUS_FREEZE | 7 |
| STATUS_INVALID | -999 |
The bound Auth public key, or empty if the binder_id has expired
This field provides a specific reason code for the failure and is only valid when status = -999.
| Status | Code |
|---|---|
| BINDER_ID_EXPIRED | 1 |
| REVIEW_EXPIRED | 2 |
| PUBKEY_ALREADY_BOUND | 3 |
| REVIEW_REJECTED | 4 |
| INVALIDATED | 5 |
| DUPLICATE_BINDING | 6 |
request(
"GET",
"/v1/custody/guard/query_binding/",
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/guard/query_binding/',
{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/guard/query_binding/", map[string]string{
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
})
{
"success": true,
"result": {
"status": 6,
"pubkey": "480da241874516ca9a25b1776e2b3ce6d2d5ea184d9a83e28874e57d4a2786ea1db059aefb2093cf6665da68c5381cf401c128aa967927c3abc46c7545c90438",
"fail_reason_code": null,
"addresses": [
{
"chain_coin": "ETH",
"address": "0x123"
}
…
]
}
}
Was this page helpful?
⌘I
