Bids
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) |
Example bid
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 |
Details on Decay Parameters
The decayStartTimestamp
and decayEndTimestamp
allow the bidder to set the range over which their bid decays.
You can find more details about the purpose and internal workings of the decay mechanism under 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.