-
Notifications
You must be signed in to change notification settings - Fork 5
ConnectWallet
Walter Lara edited this page Apr 7, 2024
·
1 revision
Allows Wallet connection from a Mobile device.
URL: /v1/wallet-connections/{connectionId}
Method: GET
Path Parameters:
Parameter | Type | Description |
---|---|---|
connectionId | string | UUID of the connection. |
Query Parameters: None
Headers:
Authorization: Bearer {accessToken}
Accept: application/json
Content: None
Code: 200 OK
Headers:
Content-Type: application/json
Content:
Field | Type | Description | Condition |
---|---|---|---|
id | string | UUID of the Connection. | Always |
createdAt | string | Date and time when the Connection was created (ISO-8601 format). | Always |
stakeAddress | string | Stake address of the connected wallet. | Always |
Content example:
{
"id": "7bd2862f-8deb-4814-8943-156d9dab80dd",
"createdAt": "2024-03-17T20:47:55.738918",
"stakeAddress": "stake1uyqnx5kzvrqkm437xsqat8defa4je5coyptl1m3hp94xs6t2ngh6c"
}
Code: 401 UNAUTHORIZED
Condition: If {accessToken}
is invalid or expired.
Code: 403 FORBIDDEN
Condition: If another User is already connected.
Headers:
Content-Type: application/json
Content example:
{
"code": 403,
"description": "Forbidden",
"cause": "Already connected to another User"
}
Code: 404 NOT FOUND
Condition: If the specified Connection is not found.
Headers:
Content-Type: application/json
Content example:
{
"code": 404,
"description": "Not Found",
"cause": "Entity WalletConnectionEntity, id=d0907e3d-a9a7-43b1-93dc-f3b0ee929021 not found in the database"
}
Generate Wallet Connection Challenge
Answer Wallet Connection Challenge