Create wallet session
POST/blockchain/wallets/sessions
To connect wallet to the Smart Contract task instance need to create a wallet session
Request
Header Parameters
Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page
An X-API-KEY key is a token that a client provides with a X-API-SECRET when making API calls, used instead of the JWT
An X-API-SECRET key is a token that a client provides with a X-API-KEY when making API calls, used instead of the JWT
- application/vnd.api+json
Body
The body of the create wallet request
data
object
attributes
object
Responses
- 200
- 401
- 500
The request was successful
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
data
object
The id of the blockchain session
attributes
object
The identifier should be uniq for each user
Possible values: [pending
, active
, removed
]
The blockchain session has the following statuses: pending - when the wallet is not connected yet to the smart contract; active - when the wallet was connected to the smart contract; removed - when the was wallet disconnected
The uniq uri to connect wallet
{
"data": {
"type": "blockchain_wallets_sessions",
"id": "t318a31a-0bcf-48d1-9350-a6ae499007c0",
"attributes": {
"identifier": "WALLET_062fd0cb-f3e2-4ad6-856b-4c3fb3c23c3d_78f01a86-84f1-4bda-8303-5fc575ae221c",
"status": "pending",
"uri": "wc:e479cf5d-ba50-48ff-8c0f-bf5bead625ee@1?bridge=https%3A%2F%2Ff.bridge.walletconnect.org&key=",
"data": "string"
}
}
}
Unauthorized exception
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 401,
"code": 0,
"title": "Unauthorized"
}
That means something has gone wrong on the server, and the server returns more specific about what the exact problem is
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The type of the error
The status of the error
The title of the error
The request body
The internal trace
{
"id": {},
"type": "errors",
"links": [
"string"
],
"status": 0,
"code": 0,
"title": "string",
"detail": "string",
"source": {},
"meta": {}
}