Fetching Steps
Iterate Through Steps
Executing Steps
Checking the fill status
Success!
post
body to the endpoint
provided in the post
data. You’ll also need to provide the signature that was generated from the sign data as a query parameter. If the request is successful we can mark the step item as complete locally.
The design pattern of this API is completely generic, allowing for automatic support of new types of liquidity without needing to update the app. This data can be fed directly into an Ethereum library such as viem, making it easy to sign and submit the exact data that is needed.
check
endpoint. The endpoint will return a status which when successful will return ‘success’. The step item can then be successfully marked as complete. Note that the transaction step item contains a chainId for which the transaction should be submitted on.
success
.
Status | Description |
---|---|
waiting | Deposit tx for the request is yet to be indexed |
pending | Deposit tx was indexed, now the fill is pending |
success | Relay completed successfully |
failure | Relay failed, attempting to refund |
refund | Funds were refunded due to failure |