JavaScript
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/eoa-accounts/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": { "id": "clp3j1f9a0000a1cdh6ezx2qv" } }
Removes the account address associated with the authenticated user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the externally owned account to be deleted.
Successfully deleted the EOA account.
Show child attributes
"clp3j1f9a0000a1cdh6ezx2qv"