IBeaconDepositContract

IBeaconDepositContract.sol Git Source

Functions

deposit

Submit a Phase 0 DepositData object.

function deposit(bytes calldata pubkey, bytes calldata withdrawal_credentials, bytes calldata signature, bytes32 deposit_data_root) external payable;

Parameters

NameTypeDescription
pubkeybytesA BLS12-381 public key.
withdrawal_credentialsbytesCommitment to a public key for withdrawals.
signaturebytesA BLS12-381 signature.
deposit_data_rootbytes32The SHA-256 hash of the SSZ-encoded DepositData object. Used as a protection against malformed input.

get_deposit_root

Query the current deposit root hash.

function get_deposit_root() external view returns (bytes32);

Returns

NameTypeDescription
<none>bytes32The deposit root hash.