Wallets

Create a wallet for logged user

POST /api/v1/users/wallets

Headers

Name
Value

Content-Type

application/json

Authorization

initData from TG

Body

Name
Type
Required

address

string

+

name

string

-

Example

{
    "address": "0x45ro3efn3efe300f3e0f3efe0feifffe30fi",
    "name": "Ton Space wallet"
}

Response

{
    "result": true,
    "message": "Wallet added or created",
    "wallet": {
        "id": "5755aebf-cc56-4893-b334-fbb8e774457e",
        "created_at": "2024-07-13T14:01:47.953Z",
        "updated_at": "2024-07-13T14:32:02.670Z",
        "deleted_at": null,
        "name": "Ton Space wallet",
        "address": "0x45ro3efn3efe300f3e0f3efe0feifffe30fi",
        "owner_id": 11
    }
}

Wallets list

GET /api/v1/users/wallets

Headers

Name
Value

Content-Type

application/json

Authorization

initData from TG

Response

Delete a wallet

DELETE /api/v1/users/wallets

Headers

Name
Value

Content-Type

application/json

Authorization

initData from TG

Body

Name
Type
Required

id

string

+

Example

Response

Last updated