Users
User Quickstart
Start consuming execution data
Construct the Authentication Token
The Authentication Token is similar to Flashbots Authentication Token but with a fixed payload of the builder address.
The Authentication is passed in as a header: X-Primev-Signature. Instead of signing an arbitrary payload, the signature is made for your target builder address, your user address is passed as the prefix:
<User Address>:<Signature(Builder Address)>
Here is a go snippet to construct the token for Primev:
Receive a Special Commitment
Use this token to Receive a special commitment from our Builder.
Make a GET request with
X-Primev-Signature: <token>
to the/authorization
endpoint. You should receive back a payload as follows:Open Primev Contract in Etherscan
Go to the Deposit Method on Etherscan. This method allows you to deposit some ETH for a specific builder on behalf of the user wallet.
Connect Web3 Wallet
To protect your privacy, we recommend you connect with a different wallet from the user wallet you will use to consume data
At the top left corner of the 'Write Contract' section, click on 'Connect to Web3' to connect your wallet. The connected address can be any address, and should not be an address you send transactions to a provider with to preserve privacy. Make sure you have some Sepolia ETH to cover transaction costs.
Specify Deposit Parameters and Send Transaction
After the transaction is confirmed, the user will be able to receive builder hints.
In the
deposit
method, you need to fill in 3 fields:payableAmount
,_builder
, and_commitment
. Fill the fields and click on the 'Write' button. Confirm the transaction using your Web3 provider.payableAmount
: the amount you want to deposit for the builder you're registering with (min 0.1 ETH)_builder
: the builder address you want to authorize a connection for_commitment
: the commitment hash obtained on step 2Connect to the Builder via WebSockets
Connect to the Builder via WebSockets.
Make a GET Request
X-Primev-Signature: <token>
to the/ws
endpoint. Congrats, you should be connected and receiving inclusion receipts!