API authentication

Endpoints for API authentication (optional)

Generate Login Message

get

Generate a login message for a specific wallet address and chain.

  • wallet_address: The wallet address of the user

  • selected_chain: The chain of the user

Query parameters
wallet_addressstringRequired
selected_chainstringRequired
Responses
chevron-right
200

Successful Response

application/json
get
/api/generate-login-message

Login

post

Login with a specific wallet address and chain.

  • wallet_address: The wallet address of the user

  • selected_chain: The chain of the user

  • nonce: The nonce of the message

  • message: The message to sign

  • signature: The signature of the message

Body
wallet_addressstringRequired
selected_chainstringRequired
noncestringRequired
messagestringRequired
signatureany ofRequired
integer[]Optional
or
stringOptional
Responses
chevron-right
200

Successful Response

application/json
post
/api/login

Logout

post

Logout from the API.

  • session_id: The session ID of the user

Body
session_idstringRequired
Responses
chevron-right
200

Successful Response

application/json
post
/api/logout

Last updated