PUBLISH Get Account Token

PUB wss://test-api.synquote.com/ws

Requests an account token. The token must be signed with the account's wallet returned via the authenticate message to authenticate the WebSocket connection.

REQUEST

HEADER PARAMS

msg_type string required
Message type: get_account_token

id number required
The ID of the request. This is returned in the response header.

version integer required
Version number: 1

BODY PARAMS

account_id string required
The account for which to generate a token.

Example
[
  {
    "msg_type":"get_account_token",
    "id": 1002,
    "version": 1
  },
  {
    "account_id": "0x9f58498b98348b9BFbE53F0E18AA818a4Be0aE49"
  }
]

RESPONSE

account_token string
The token to sign.

Example
[
  {
    "msg_type":"get_account_token_response",
    "id": 1002,
    "version": 1
  },
  {
    "account_token": "test_token"
  }
]