📄Spect API
How to create apps on top of Spect API
Introduction
To interact with our server, we need to first authenticate with it using the SIWE protocol.
Once authenticated, you can use any of our APIs.
Also to allow anyone to use our api, we have created a proxy server which you have to use to call our apis, as our main server is restricted only to our domain.
Authentication
The authentication flow is as follows
Query the /nonce endpoint to get a nonce
Sign a message with the nonce
Send the message and signature as payload to /connect
And you are authenticated!
You need to have SIWE and Wagmi installed, it can work with rainbowKit as well
Getting Nonce
Signing message with nonce
Connect
If you wish to use rainbowKit follow these docs https://www.rainbowkit.com/docs/custom-authentication
Next steps
Now you can query all our endpoints with ease, the docs for which can be found on our swagger endpoint: https://apistaging.spect.network/api#/
You have to query the endpoints on
https://proxy.spect.network/api/<endpoint>
Last updated