eth_sendRawTransaction
, eth_getTransactionReceipt
, etc.), but under the hood, the RPC leverages mev-commit to coordinate a decentralized network of block builders who issue and honor transaction commitments. Additionally, the RPC also provides additional endpoints (such as mevcommit_getTransactionCommitments
) for advanced use cases.
eth_sendRawTransaction
is used to send transactions to the RPC. Instead of sending the transaction to the public mempool, the RPC instead sends encrypted bids to block builders in the mev-commit network. Once all registered block builders have issued a commitment and if the next block proposer is opted in, the RPC considers the transaction as preconfirmed. From that point on, eth_getTransactionReceipt
will return a receipt for that transaction, including a special block hash, that can be used to call eth_getBlockByHash
. That call will in turn return a special block that only contains this specific preconfirmed transaction. This ensures compatibility with existing wallets to recognize preconfirmed transactions.
The RPC is designed to integrate easily into existing tools and infrastructure. That means after setup, basic usage is equivalent to using any regular RPC, except that transactions quickly get preconfirmed.
Point your application to the FAST RPC
Deposit funds in the gas tank
mevcommit_estimateDeposit
. This call returns:Submit transactions
eth_sendRawTransaction
.eth_maxPriorityFeePerGas
of the RPC therefore always returns 0.Monitor preconf status
eth_getTransactionReceipt
. The FAST RPC will already return a receipt once a preconfirmation is obtained from all providers and if the next block proposer is opted in.For more detailed information, you can also call mevcommit_getTransactionCommitments
. This method takes the transaction hash as input and returns the commitments received for that transactions on the mev-commit network. This can be useful for advanced decision making in case eth_getTransactionReceipt
does not return a receipt, e.g., if the block proposer is not opted in or if some, but not all, providers have committed to a transaction.mevcommit_getBalance
. Once this balance runs low, it should be topped up as in the initial deposit described above.
eth_getTransactionReceipt
if the next block proposer is opted into mev-commit. The DApp may therefore want to adjust its strategy based on whether the next proposers are opted in or not. To enable this, the FAST RPC provides the endpoint mevcommit_optedInBlock
, which returns the time in seconds until the next block with a mev-commit opted-in proposer.
Go to your wallet's "Add Custom RPC" screen and add the following details:
https://fastrpc.mev-commit.xyz
Chain ID: 1
Currency Symbol: ETH
Block explorer URL: etherscan.ioThis replaces your standard Ethereum RPC URL (e.g., from Infura or Alchemy) with the FAST RPC.Deposit funds in the gas tank
0x24AFFA7b16A0771848f6CD49c2aa36506Bfc2ACf
to top up your bid balance.Make a transaction!