MEV builder share
POST /api/mev-builder-shareBuilder market share aggregated over the last N MEV-Boost blocks via the Flashbots relay. Send POST /api/mev-builder-share with no required fields (1 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with windowBlocks, uniqueBuilders, relay and builders.
Returns per-builder block count, share percent, total ETH paid to proposers, and average per block. Use to track block-builder concentration or detect a new builder gaining share.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
window | number | no | Recent blocks to aggregate (10-200, default 100). |
Example request
curl -i -X POST https://agent402.tools/api/mev-builder-share \
-H "Content-Type: application/json" \
-d '{"window":100}'
Without payment this returns HTTP 402 Payment Required with the exact price for mev-builder-share; any x402 v2 or MPP client pays it and retries.
Example response
{
"windowBlocks": 100,
"uniqueBuilders": 5,
"relay": "flashbots",
"builders": [
{
"builderPubkey": "0x9000...",
"builderShort": "0x90000000…abcdef",
"blocks": 42,
"sharePct": 42,
"totalEthToProposers": 3.456789,
"avgEthPerBlock": 0.082305
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
windowBlocks | number | yes | 100 |
uniqueBuilders | number | yes | 5 |
relay | string | yes | flashbots |
builders | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "mev-builder-share",
"params": {
"window": 100
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for mev-builder-share; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/mev-builder-share returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/mev-builder-share", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"window": 100
}),
});
Related tools
MEV block payment lookup
POST /api/mev-block-paymentLook up the MEV-Boost payment for a specific slot or block number via the Flashbots relay. Returns the builder, proposer…
MEV recent blocks
POST /api/mev-recent-blocksLast N MEV-Boost-built blocks via the Flashbots relay. For each block: slot, block number/hash, builder pubkey, proposer…
Solana token holder concentration
POST /api/sol-token-holdersTop-holder concentration for a Solana token mint: the 20 largest holders with token account, owner wallet, balance, perc…
Known-address label lookup
POST /api/address-labelLabel a known EVM address from a curated, committed dataset: major stablecoin + token contracts (the USDC and USDG contr…
Wallet token transfers (filtered)
POST /api/asset-transfersRecent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…
Block info
GET /api/block-infoHeader-level detail for one block on Ethereum, Base, Polygon, Arbitrum, or Optimism: hash, timestamp (unix + ISO), trans…