Skip to main content

Wallets

Wallet management and contract deployment.

Authentication: Bearer token required.


Create Wallet

Endpoint: POST /api/v1/wallets

Request Body

FieldTypeRequiredDescription
node_idstringYesNode UUID
chain_idstringYesChain UUID
namestringYes1–255 chars

Response — 201 Created

Returns wallet object (id, node_id, chain_id, name, address, is_active, created_at, updated_at).

StatusDescription
404Node or chain not found

List Wallets

Endpoint: GET /api/v1/wallets

Query Parameters

ParameterTypeRequiredDefaultDescription
node_idstringYesNode UUID
pageintNo1Page number
per_pageintNo10Items per page (max 100)

Response — 200 OK

Paginated list with items, page, per_page, total.


Get Wallet by ID

Endpoint: GET /api/v1/wallets/{id}

Response — 200 OK

Full wallet object.

StatusDescription
404Wallet not found

Update Wallet

Endpoint: PUT /api/v1/wallets/{id}

Request Body

FieldTypeRequiredDescription
namestringNomax 255
addressstringNomax 255
is_activeboolNoActive flag

Response — 204 No Content

StatusDescription
404Wallet not found

Delete Wallet

Endpoint: DELETE /api/v1/wallets/{id}

Soft-deletes a wallet.

Response — 204 No Content

StatusDescription
404Wallet not found

Deploy Node Contracts

Endpoint: POST /api/v1/wallets/{id}/deploy

Starts or continues an ordered deployment sequence. Safe to call repeatedly.

Request Body

FieldTypeRequiredDescription
node_idstringYesNode UUID
network_idstringYesNetwork UUID

Wallet ID comes from path.

Response — 201 Created

{
"step": "deploy_diamond",
"transaction_id": "550e8400-...",
"status": "started"
}
StatusDescription
404Wallet, node, or network not found

Check Node Contract Versions

Endpoint: GET /api/v1/wallets/{id}/deploy/version-check

Query Parameters

ParameterTypeRequiredDescription
node_idstringYesNode UUID
network_idstringYesNetwork UUID

Response — 200 OK

Returns any_update_available, checked_at, contracts array.

StatusDescription
404Wallet, node, or network not found

Update Node Contracts

Endpoint: POST /api/v1/wallets/{id}/update

Deploys updated facets (if needed) and triggers update_diamond_cut.

Request Body

FieldTypeRequiredDescription
node_idstringYesNode UUID
network_idstringYesNetwork UUID

Response — 201 Created

StatusDescription
404Wallet, node, or network not found