Bid Structure
The bid payload sent to the internal mev-commit API is as follows:
Key | Description |
---|---|
txHashes | Array of transaction hashes as strings |
amount | Bid amount in wei |
blockNumber | L1 block number targeted for bid inclusion |
decayStartTimestamp | Start timestamp for bid decay (in Unix milliseconds) |
decayEndTimestamp | End timestamp for bid decay (in Unix milliseconds) |
revertingTxHashes | Array of transaction hashes as strings that can revert |
rawTransactions | Array of raw signed transaction payloads |
Only one out of the txHashes
or rawTransactions
need to be provided in the bid. If the rawTransactions
is given, the txHashes
are inferred from it.
The final bid structure includes a hash and signature that is auto-constructed by your mev-commit bidder node and looks as follows.
Note that the deposit amount a bidder has set needs to be 10 times higher than the amount in the bid.
Details on Bid Structure
Property | Description |
---|---|
txnHashes | Array of transaction hashes represented as strings |
amount | Amount to bid in wei |
blockNumber | L1 target block to have bid included |
decayStartTimestamp | Start timestamp for bid decay (in Unix milliseconds) |
decayEndTimestamp | End timestamp for bid decay (in Unix milliseconds) |
bidDigest | Hash of the bid |
bidSignature | Signed bidВigest = sign(bidDigest, signingKey) |
nikePublicKey | NIKE public key of the bidder, autogenerated for each bid |
revertingTxHashes | Array of transaction hashes as strings that can revert |
Details on Decay Parameters
The decayStartTimestamp
and decayEndTimestamp
parameters allow bidders to control the range over which their bid decays.
Due to inherent network delays, preconfirmation times can range between 50 to 250 milliseconds even if providers commit immediately after seeing the bid. To account for this, you might want to set your decayStartTimestamp
approximately 300 milliseconds in the future. However, setting this delay is not mandatory and should be adjusted based on your strategic preferences for bid timing and pricing.
For more detailed information about the decay mechanism, refer to the Bid Decay Page.
Details on Encrypted Bid Structure
The bid structure is encrypted using an AES key, which the bidder P2P node generates at the start, and is then sent to the provider.