Making Requests to Mishti Network
Once you have credits, you may make a request to the Mishti Network via the Relay node. For the testnet on Holesky, the Relay node can be reached at via HTTP requests to http://159.65.246.91:3031
Requests to the network are of the following format
Method is an enum with the following format
Here is an example request:
How to find the epoch, request_per_user, and signature fields
To make a request to the network you need to know a few things
epoch
request_per_user
signifying how many requests the signer who signed off on the request has madesignature
by the user who signed the request who you need to have credits at the address who signed the request.
There are two ways of getting this data:
Spin up a Signer to simplify this on behalf on end users. A Signer keeps track of this state and signs requests on behalf of the end user. This way, users don't need to acquire Mishti credits or keep track of global state. An example of a Signer is provided here.
End users can directly interface by acquiring credits and querying the epoch and their request number via the POST
/user-state/
endpoint to find the user
Last updated