ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / createWithdrawal

Function: createWithdrawal()

createWithdrawal(withdrawalData): Withdrawal

Defined in: packages/util/src/withdrawal.ts:106

Creates a validator withdrawal request to be submitted to the consensus layer

Parameters

withdrawalData

WithdrawalData

the consensus layer index and validator index values for the validator requesting the withdrawal and the address and withdrawal amount of the request

Returns

Withdrawal

a Withdrawal object