Interacting with the Bidder Node
Ensure you have completed the Quickstart step in a separate terminal. This will set up your environment and place your key in the
$HOME/.mev-commit
directory, along with running the required bidder node.❯_ terminal
Getting Deposit
To get the current deposit balance in the contract for the current window:❯_ terminal
❯_ terminal
Deposit represents the funds in the bidder’s account that can be used to submit bids on the mev-commit p2p-network and settled on-chain.
Withdraw Deposited Funds
This command will allow you to withdraw funds from the specific window. Window number is the number where the bidder deposited funds.❯_ terminal
Autodeposit Funds
The auto deposit feature allows you to automate the process of depositing funds for the bidder account. This is useful for ensuring your bidder account always has funds available to bid. In order to achieve this, the node will keep issuing deposits for the new windows and also withdrawing funds from the previous windows. For seamless availability of funds, the deposits would be locked for around 3 windows at a time. So the total amount locked would be
3 * amountPerWindow
. The user’s wallet should have enough funds to be able to maintain these deposits as well as cover gas costs to issue transactions.On node boot up
Users can use the command-line or the configuration file to enable this feature on node boot-up. Theautodeposit-enabled
flag should be set as well as the autodeposit-amount
needs to be set to the amount to be deposited in each window.
In order to enable this at node boot up, users needs to fund their wallet before starting the node. So we would need to know the private-key used for the account beforehand.
❯_ terminal
Use the Bidder API
Another option to enable this is using the Bidder API.❯_ terminal
Get Auto Deposit Status
To get the status of the auto deposit process:❯_ terminal
Cancel Auto Deposit
To cancel the auto deposit process:❯_ terminal
If withdraw is set, the node will try to withdraw the deposit at the earliest possible time. It might take time before we are able to withdraw from the current window. The bidder node should be running in order to allow this process to complete. If withdraw is not set, the API will return the window numbers which have been already deposited to. The user can then manually issue withdraw at a later point using the API.
Withdraw Funds
To withdraw funds from the several windows, you can use the following command:❯_ terminal
Checking the Balance of your Wallet
This command will allow you to check your current wallet balance on mev-commit chain:❯_ terminal
Check Total Value Locked in Contracts
❯_ terminal
Health
The health endpoint checks whether the bidder node is receiving events from mev-commit chain. This command is useful to determine whether the bidder node has become out of sync (e.g. can’t find the window balance).❯_ terminal
Topology
The topology endpoint can be used to check which provider nodes the bidder node is connected to.❯_ terminal
Querying for Proposers API
This API is enabled by default, the following environment variables could be set when launching a mev-commit client:MEV_COMMIT_VALIDATOR_ROUTER_ADDR
MEV_COMMIT_BEACON_API_URL
MEV_COMMIT_L1_RPC_URL
0x251Fbc993f58cBfDA8Ad7b0278084F915aCE7fc3
.
The default URLs for the Beacon Chain and L1 RPC are https://ethereum-holesky-beacon-api.publicnode.com and https://ethereum-holesky-rpc.publicnode.com, respectively, but you can set your own URLs.
To get the information on whether validators for a specific epoch are opted in to mev-commit:
❯_ terminal
❯_ terminal
Configuring custom provider sets
Users can also set-up a specific subset of provider nodes in order to send their bids. By default the mev-commit bidder node will send bids to all the available and staked providers. However, if the user wants only a specific subset of providers to be able to see their bids, the can use the--provider-whitelist
option to set it up. The list should contain the ethereum wallet addresses of the provider nodes.
❯_ terminal