cURL
curl --request GET \
--url http://localhost:4100/v1/account/devices \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/account/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"devices": [
{
"address": "<string>",
"label": "<string>",
"isCurrentSigner": true
}
],
"threshold": 2,
"deviceCount": 1,
"deployed": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Account devices
Get v1accountdevices
Owner session required. Mounted only when the Base device authority is enabled and verified. Reads the account’s live OwnableValidator or migrated PolicyValidator signer set.
cURL
curl --request GET \
--url http://localhost:4100/v1/account/devices \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/account/devices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"devices": [
{
"address": "<string>",
"label": "<string>",
"isCurrentSigner": true
}
],
"threshold": 2,
"deviceCount": 1,
"deployed": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}