broker_api_key method and include the user’s wallet address in auth.wallet_address. The wallet must belong to your Broker.
Sign a private subscription
The request fieldt is a Unix timestamp in milliseconds. Use floor(t / 1000) as the time value in the signature string. URL-encode the wallet address and keep this field order:
HexEncode(HMAC_SHA512(Broker API Secret, UTF8(signature string))). The WebSocket signature includes the wallet address and differs from the REST signature. Never send your API Secret.
Subscribe
time in the signature string is 1720000000. Sign each private channel with its own channel name. The wallet address in the signature must match auth.wallet_address exactly.
Authenticate a connection first (optional)
You can authenticate withserver.sign before subscribing. Sign this separate string:
auth. A connection is bound to one user wallet. Open a new connection to switch users, and authenticate again after reconnecting. Pass the wallet in the WebSocket message; the REST X-User-Wallet-Address header is not required on the WebSocket handshake. For REST signing, see Broker API Key and signing.