eth1deposit

package
v1.3.1-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2023 License: GPL-3.0 Imports: 5 Imported by: 2

README

Blox Eth Key Manager - ETH 1 Deposit

blox.io

Easily create an eth1 deposit. Inludes:

- DepositData method that takes a valdiation and withdrawal accounts and returns deposit data
- A JS example of packaging it into a transaction and sending

Documentation

Index

Constants

View Source
const (
	// MaxEffectiveBalanceInGwei is the max effective balance
	MaxEffectiveBalanceInGwei phase0.Gwei = 32000000000

	// BLSWithdrawalPrefixByte is the BLS withdrawal prefix
	BLSWithdrawalPrefixByte = byte(0)
)

Variables

View Source
var IsSupportedDepositNetwork = func(network core.Network) bool {
	return network == core.PyrmontNetwork || network == core.PraterNetwork || network == core.MainNetwork
}

IsSupportedDepositNetwork returns true if the given network is supported

Functions

func DepositData

func DepositData(validationKey *core.HDKey, withdrawalPubKey []byte, network core.Network, amount phase0.Gwei) (*phase0.DepositData, [32]byte, error)

DepositData is basically copied from https://github.com/prysmaticlabs/prysm/blob/master/shared/keystore/deposit_input.go

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL