Integrate
Webhooks.
We post an event to your endpoint when a transaction changes. Set endpoints and choose their events in the dashboard, under Webhooks.
Events
- A rebate payment was sent on-chain.
- A transaction was included privately.
- A transaction was included and its own execution failed.
- A transaction would have reverted, so revert protection kept it out of the block.
What is posted
A JSON body with the event's name, when it happened as a Unix timestamp in milliseconds, and the transaction object as it is after the change.
Checking the signature
Each request carries four headers: the event's name in MEVLabs-Event, its id in MEVLabs-Event-Id (the same as id in the body, and the same on every endpoint and on a retry), when it was sent in MEVLabs-Timestamp (a Unix timestamp in seconds), and its signature in MEVLabs-Signature. The request is signed with the endpoint's signing secret, shown once when the endpoint is created. Compute an HMAC-SHA256, with that secret as the key, of the MEVLabs-Timestamp header, a dot and the raw body, write it in hex, and compare it with what follows v1= in MEVLabs-Signature.
Answering
Answer with any 2xx within ten seconds. Anything else, or no answer, counts as failed and is tried again later. The dashboard lists every delivery with what your endpoint answered, and a failed one can be sent again from there. Use the event's id to ignore one you have already handled.