MEV_COMMIT_ENABLE_DEPOSIT_MANAGER and MEV_COMMIT_TARGET_DEPOSIT_AMOUNT environment variables.
Automate depositing - Through API
To enable the deposit manager through API, use the following command:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
> curl -s "http://localhost:13523/v1/bidder/get_deposit?provider=0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC" | jq
{
"amount": "0",
"provider": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
}
> curl -s "http://localhost:13523/v1/bidder/get_all_deposits" | jq
{
"deposits": [
{
"provider": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",
"amount": "3000000000000000000"
}
],
"bidderBalance": "9996999791340641239011"
}
> curl localhost:13523/v1/debug/topology | jq
{
"self": {
"Addresses": [
"/ip4/127.0.0.1/tcp/13522",
"/ip4/172.29.0.4/tcp/13522"
],
"Ethereum Address": "0xB9286CB4782E43A202BfD426AbB72c8cb34f886c",
"Peer Type": "bidder",
"Underlay": "16Uiu2HAmDWZb4DxZQkS9yseXNukBFe6MhZdimSKuZcHFeJrF3jC9"
},
"connected_peers": {
"providers": [
"0x48ddc642514370bdafad81c91e23759b0302c915",
"0x972eb4fc3c457da4c957306be7fa1976bb8f39a6",
"0xa1e8fdb3bb6a0db7aa5db49a3512b01671686dcb"
]
},
"blocked_peers": null
}
> ./mev-commit --enable-deposit-manager=true --target-deposit-amount=<amount>
MEV_COMMIT_ENABLE_DEPOSIT_MANAGER and MEV_COMMIT_TARGET_DEPOSIT_AMOUNT environment variables.
Automate depositing - Through API
To enable the deposit manager through API, use the following command:
> curl -s -X POST http://localhost:13523/v1/bidder/enable_deposit_manager | jq
{
"success": true
}
> curl -s -X POST http://localhost:13523/v1/bidder/set_target_deposits -H 'Content-Type: application/json' -d '{"target_deposits":[{"provider":"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC","target_deposit":"3000000000000000000"}]}' | jq
{
"successfullySetDeposits": [
{
"provider": "3c44cdddb6a900fa2b585dd299e03d12fa4293bc",
"targetDeposit": "3000000000000000000"
}
],
"successfullyToppedUpProviders": [
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
]
}
> curl -s -X POST "http://localhost:13523/v1/bidder/deposit/1000000000000000000?provider=0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC" | jq
{
"amount": "1000000000000000000",
"provider": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
}
> curl -s -X POST "http://localhost:13523/v1/bidder/deposit_evenly?total_amount=2000000000000000000&providers=0x8F644015Aa59984BF849259375d9135A89a940e7&providers=0x353ff5537cc2fe78C8632c41Bb848735C2982c45" | jq
{
"providers": [
"8f644015aa59984bf849259375d9135a89a940e7",
"353ff5537cc2fe78c8632c41bb848735c2982c45"
],
"amounts": [
"1000000000000000000",
"1000000000000000000"
]
}
> curl -s -X POST http://localhost:13523/v1/bidder/request_withdrawals \
-H 'Content-Type: application/json' \
-d '{
"providers": [
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
]
}' | jq
{
"providers": [
"3c44cdddb6a900fa2b585dd299e03d12fa4293bc"
],
"amounts": [
"3000000000000000000"
]
}
curl -s -X POST http://localhost:13523/v1/bidder/withdraw \
-H 'Content-Type: application/json' \
-d '{
"providers": [
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
]
}' | jq
{
"providers": [
"3c44cdddb6a900fa2b585dd299e03d12fa4293bc"
],
"amounts": [
"3000000000000000000"
]
}
| Outcome Matrix | Provider Wins Slot Auction | Provider Loses Slot Auction |
|---|---|---|
| Transaction in block | Reward Provider | Refund Bid to Bidder |
| Transaction not in block | Slash Provider & Refund Bid To Bidder | Refund Bid to Bidder |