A primary task for an aspiring eth validator is to submit a transaction containing deposit data to the deposit contract on the eth1 network (currently Goerli). This deposit data is generated against the eth account’s validator’s key, the deposit value (32 ETH min), and the eth account’s withdrawal credentials.
How the deposit data is generated depends on how a user sets up their eth Validator.
Guidance for Pioneer Program
- For programmatic deposits, use the ethereal utility
- Raw deposit data may be submitted through MetaMask
- For GUI-driven deposits, use mycrypto.com or similar front-ends that allow contract interaction
- Deposits can be made from any eth1 account
The data currently returned from our allocation endpoints is in the following form for each allocation.
"message": "successfully imported account",
depositData key, the actual deposit data needed to activate your validator comes in two forms:
formatted data has keys which correspond directly to the DepositContract. The JSON value at the
formatted key can be used directly with the ethereal command line tool, or values can be extracted and used with any interface that supports interacting with contracts.
raw key contains deposit data in a form that can be used to programmatically generate a transaction which will need to be signed and submitted to the DepositContract address.
Working with Raw Deposit Data
Depositing Raw Data with MetaMask
The value at the
raw key can be used to send the
32 ether deposit to the DepositContract with MetaMask. This method appears to be the most straightforward option.
If you do not have Hex Data enabled in MetaMask, go to Settings > Advanced > Show Hex Data to turn on sending Hex Data when sending a transaction. This is where you will submit the
Because the process of submitting the raw deposit data is simply sending it to the DepositContract address as a data payload with a value of 32 ETH, you can also use any programmatic tooling that supports Ethereum transactions such as web3.js, ethers.js, or geth.
Working with Formatted Deposit Data
Command Line Deposits
The ethereal utility provides a simple way to take the formatted JSON value and submit a transaction using either a local node or remote QT node. You must have Golang installed to use it. What follows is a summary of usage.
GO111MODULE=on go get github.com/wealdtech/ethereal@latest
Extract the value at the
formatted key. Here it has been saved to a file for clarity, but you may also get the value directly from the response.
ethereal beacon deposit \
You may also use
passphrase instead of the private key if you are accessing an account accessible on a local node. For more options, see
ethereal beacon deposit --help
GUI-driven Contract Interaction
My Ether Wallet (MEW) and mycrypto.com, among others, provide a browser-based GUI to interact with contracts. To use these tools, first identify the address of the DepositContract for the eth target network. Take care that the contract address is one that is deployed on the Goerli eth1 network. Extract the values from the JSON for keys matching the contract method calls. The value to send is
32 ether or
32000000000000000000 wei excluding gas.
Here is an example with mycrypto.com:
Was this helpful?