Tutorial
Last updated
Last updated
To submit a preconf request fill in the following curl
template with the params
containing your raw transaction and RPC/v0
being the router's endpoint on the supported networks.
The router's endpoint and query parameters for the url (separate from the params
field in the body) can be found in .
A successful response returns the hash of your transaction but that transaction may not appear in any block explorer until a preconfer has submitted it to the mempool or the router failed to get a commitment and forwarded the request to a standard RPC provider.
The hash is used as a parameter to query so save it for the next step.
Once a preconf request has been submitted you may use the hash to query its status to see if it has finished processing and if it has succeeded or failed.
A non-preconf request is not stored therefore an error / no data is returned.
A success comes from 2 states:
Attaining a commitment
Failed to gain commitment but successfully forwarded to RPC provider (if the user specified fallback=true
)
A valid request will respond with something like
If in the previous stage the status
contained Success
then we may attempt to query the commitment.
The response should contain the latest slot for the inclusion request, the preconfer that committed and their signature.