POST
/
api
/
v1
/
auth
curl --request POST \
  --url https://apiserver.beratrade.io/api/v1/auth \
  --header 'Content-Type: application/json' \
  --data '{
  "signingKey": "<string>",
  "signingSignature": "<string>",
  "ethAddress": "<string>",
  "ethSignature": "<string>",
  "expiryTs": 123,
  "nonce": 123,
  "chainId": 123
}'
[
  {
    "body": {
      "bliq_key": "<string>",
      "bliq_secret": "<string>",
      "bliq_secret_hash": "<string>"
    },
    "message": "<string>",
    "status": 123
  }
]

Body

application/json
signingKey
string
required

Any EVM address (can be generated at the time of sending request) which will be used as proxy to sign all requests on behalf of user

signingSignature
string
required

Signature generated using signingKey address

ethAddress
string
required

EVM address of the user

ethSignature
string
required

Signature generated using EVM address

expiryTs
integer
required

Timestamp at which bliq_key and bliq_secret credentials will expire (in milliseconds). expiryTs can be any timestamp 1 week from the current unix timestamp.

nonce
integer
required

When the user sends their first request, they start with 0 nonce and for every subsequent request, nonce should be incremented by 1. No two requests sent by the user to beliquid can have the same nonce. User can get the current nonce from this api

chainId
integer
required

Users should use the chain id of ethereum (1) in this field.

Response

200
application/json
Auth Response
body
object
required
message
string
required
status
integer
required