cURL
curl --request PATCH \
--url http://localhost:4100/v1/accounts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"hidden": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', hidden: true})
};
fetch('http://localhost:4100/v1/accounts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"label": "<string>",
"address": "<string>",
"type": "<string>",
"deploymentStatus": "counterfactual",
"chainId": 8453,
"signerAddress": "<string>",
"frozen": true,
"index": 123,
"hidden": true,
"purpose": "<string>",
"supersededAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"chains": [
{
"chainId": 8453,
"accountId": "<string>",
"deploymentStatus": "counterfactual",
"frozen": true,
"authorityCore": true
}
],
"totalFiat": 123
}{
"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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Account
Patch v1accounts
cURL
curl --request PATCH \
--url http://localhost:4100/v1/accounts/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"hidden": true
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', hidden: true})
};
fetch('http://localhost:4100/v1/accounts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"label": "<string>",
"address": "<string>",
"type": "<string>",
"deploymentStatus": "counterfactual",
"chainId": 8453,
"signerAddress": "<string>",
"frozen": true,
"index": 123,
"hidden": true,
"purpose": "<string>",
"supersededAddress": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"chains": [
{
"chainId": 8453,
"accountId": "<string>",
"deploymentStatus": "counterfactual",
"frozen": true,
"authorityCore": true
}
],
"totalFiat": 123
}{
"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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Response
Success.