Javascript
const url = 'https://api.gnosispay.com/api/v1/eoa-accounts'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"address":"0x1234567890abcdef1234567890abcdef12345678"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "id": "clp3j1f9a0000a1cdh6ezx2qv", "address": "0x1234567890abcdef1234567890abcdef12345678", "userId": "user_123", "createdAt": "2025-01-27T00:00:00Z" }
Registers a new externally owned account (EOA) address for the authenticated user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully created EOA account.
The response is of type object.
object