Developers
funkybit offers REST and Websocket APIs for all exchange functions.
The funkybit API endpoint is https://api.funkybit.fun/
Authentication for both APIs is the same, and starts with an ECDSA key pair and the associated EVM address address
.
Define this sign-in message:
Next sign the following EIP-712 message:
Now construct the auth token as:
where signInMessageBody
is simply message
converted to a JSON string and base64url-encoded.
To authenticate to the REST API, send a Authorization: Bearer <AUTH-TOKEN>
HTTP header.
To authenticate to the Websocket API, use wss://api.funkybit.fun/connect?auth=<AUTH-TOKEN>
as the websocket connection URL.
Any valid chain id can be used.
Last updated