Documentation
¶
Index ¶
- Constants
- func CalculateMegapoolWithdrawalCredentials(megapoolAddress common.Address) common.Hash
- func CalculateRewards(rp *rocketpool.RocketPool, amount *big.Int, nodeAccount common.Address) (api.MegapoolRewardSplitResponse, error)
- func ConvertToFixedSize(proofBytes [][]byte) [][32]byte
- func ConvertWithdrawalAmount(amount uint64) *big.Int
- func FindWithdrawalBlockAndArrayPosition(slot uint64, validatorIndex uint64, bc beacon.Client) (uint64, eth2.SignedBeaconBlock, int, *generic.Withdrawal, error)
- func GetBeaconState(bc beacon.Client) (eth2.BeaconState, error)
- func GetChildBlockTimestampForSlot(c *cli.Context, slot uint64) (uint64, error)
- func GetConfig(c *cli.Context) (*config.RocketPoolConfig, error)
- func GetDocker(c *cli.Context) (*client.Client, error)
- func GetHdWallet(c *cli.Context) (wallet.Wallet, error)
- func GetMegapoolQueueDetails(rp *rocketpool.RocketPool) (api.QueueDetails, error)
- func GetMegapoolValidatorDetails(rp *rocketpool.RocketPool, bc beacon.Client, mp megapool.Megapool, ...) ([]api.MegapoolValidatorDetails, error)
- func GetNodeMegapoolDetails(rp *rocketpool.RocketPool, bc beacon.Client, nodeAccount common.Address) (api.MegapoolDetails, error)
- func GetPasswordManager(c *cli.Context) (*passwords.PasswordManager, error)
- func GetRocketPool(c *cli.Context) (*rocketpool.RocketPool, error)
- func GetRocketSignerRegistry(c *cli.Context) (*contracts.RocketSignerRegistry, error)
- func GetValidatorProof(c *cli.Context, slot uint64, wallet wallet.Wallet, ...) (megapool.ValidatorProof, uint64, megapool.SlotProof, error)
- func GetWallet(c *cli.Context) (wallet.Wallet, error)
- func GetWithdrawableEpochProof(c *cli.Context, wallet *wallet.Wallet, eth2Config beacon.Eth2Config, ...) (api.ValidatorWithdrawableEpochProof, error)
- func GetWithdrawalProofForSlot(c *cli.Context, slot uint64, validatorIndex uint64) (megapool.FinalBalanceProof, uint64, eth2.BeaconState, error)
- func IsSyncWithinThreshold(ec rocketpool.ExecutionClient) (bool, time.Time, error)
- func NewEthClient(url string) (*ethClient, error)
- func RequireBeaconClientSynced(c *cli.Context) error
- func RequireEthClientSynced(c *cli.Context) error
- func RequireNodeRegistered(c *cli.Context) error
- func RequireNodeSecurityMember(c *cli.Context) error
- func RequireNodeTrusted(c *cli.Context) error
- func RequireNodeWallet(c *cli.Context) error
- func RequireRocketStorage(c *cli.Context) error
- func WaitBeaconClientSynced(c *cli.Context, verbose bool) error
- func WaitEthClientSynced(c *cli.Context, verbose bool) error
- func WaitNodeHdPassword(c *cli.Context, verbose bool) error
- func WaitNodeHdWallet(c *cli.Context, verbose bool) error
- func WaitNodeRegistered(c *cli.Context, verbose bool) error
- func WaitRocketStorage(c *cli.Context, verbose bool) error
- type BeaconClientManager
- func (m *BeaconClientManager) ChangeWithdrawalCredentials(validatorIndex string, fromBlsPubkey types.ValidatorPubkey, ...) error
- func (m *BeaconClientManager) CheckStatus() *api.ClientManagerStatus
- func (m *BeaconClientManager) Close() error
- func (m *BeaconClientManager) ExitValidator(validatorIndex string, epoch uint64, signature types.ValidatorSignature) error
- func (m *BeaconClientManager) GetAllValidators() ([]beacon.ValidatorStatus, error)
- func (m *BeaconClientManager) GetAttestations(blockId string) ([]beacon.AttestationInfo, bool, error)
- func (m *BeaconClientManager) GetBeaconBlock(blockId string) (beacon.BeaconBlock, bool, error)
- func (m *BeaconClientManager) GetBeaconBlockHeader(blockId string) (beacon.BeaconBlockHeader, bool, error)
- func (m *BeaconClientManager) GetBeaconBlockSSZ(slot uint64) (*beacon.BeaconBlockSSZ, bool, error)
- func (m *BeaconClientManager) GetBeaconHead() (beacon.BeaconHead, error)
- func (m *BeaconClientManager) GetBeaconStateSSZ(slot uint64) (*beacon.BeaconStateSSZ, error)
- func (m *BeaconClientManager) GetClientType() (beacon.BeaconClientType, error)
- func (m *BeaconClientManager) GetCommitteesForEpoch(epoch *uint64) (beacon.Committees, error)
- func (m *BeaconClientManager) GetDomainData(domainType []byte, epoch uint64, useGenesisFork bool) ([]byte, error)
- func (m *BeaconClientManager) GetEth1DataForEth2Block(blockId string) (beacon.Eth1Data, bool, error)
- func (m *BeaconClientManager) GetEth2Config() (beacon.Eth2Config, error)
- func (m *BeaconClientManager) GetEth2DepositContract() (beacon.Eth2DepositContract, error)
- func (m *BeaconClientManager) GetSyncStatus() (beacon.SyncStatus, error)
- func (m *BeaconClientManager) GetValidatorBalances(indices []string, opts *beacon.ValidatorStatusOptions) (map[string]*big.Int, error)
- func (m *BeaconClientManager) GetValidatorBalancesSafe(indices []string, opts *beacon.ValidatorStatusOptions) (map[string]*big.Int, error)
- func (m *BeaconClientManager) GetValidatorIndex(pubkey types.ValidatorPubkey) (string, error)
- func (m *BeaconClientManager) GetValidatorProposerDuties(indices []string, epoch uint64) (map[string]uint64, error)
- func (m *BeaconClientManager) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
- func (m *BeaconClientManager) GetValidatorStatusByIndex(index string, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
- func (m *BeaconClientManager) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (map[types.ValidatorPubkey]beacon.ValidatorStatus, error)
- func (m *BeaconClientManager) GetValidatorSyncDuties(indices []string, epoch uint64) (map[string]bool, error)
- type ExecutionClientManager
- func (p *ExecutionClientManager) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (p *ExecutionClientManager) BlockNumber(ctx context.Context) (uint64, error)
- func (p *ExecutionClientManager) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (p *ExecutionClientManager) ChainID(ctx context.Context) (*big.Int, error)
- func (p *ExecutionClientManager) CheckStatus(cfg *config.RocketPoolConfig) *api.ClientManagerStatus
- func (p *ExecutionClientManager) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (p *ExecutionClientManager) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)
- func (p *ExecutionClientManager) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (p *ExecutionClientManager) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (p *ExecutionClientManager) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (p *ExecutionClientManager) LatestBlockTime(ctx context.Context) (time.Time, error)
- func (p *ExecutionClientManager) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (p *ExecutionClientManager) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (p *ExecutionClientManager) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (p *ExecutionClientManager) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (p *ExecutionClientManager) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (p *ExecutionClientManager) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (p *ExecutionClientManager) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (p *ExecutionClientManager) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (p *ExecutionClientManager) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (p *ExecutionClientManager) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
Constants ¶
const BeaconClientSyncTimeout = 16 // 16 seconds
const EthClientSyncTimeout = 16 // 16 seconds
Settings
const MAX_WITHDRAWAL_SLOT_DISTANCE = 144000 // 20 days.
Variables ¶
This section is empty.
Functions ¶
func CalculateMegapoolWithdrawalCredentials ¶ added in v1.18.0
func CalculateRewards ¶ added in v1.18.0
func CalculateRewards(rp *rocketpool.RocketPool, amount *big.Int, nodeAccount common.Address) (api.MegapoolRewardSplitResponse, error)
func ConvertToFixedSize ¶ added in v1.18.0
func ConvertWithdrawalAmount ¶ added in v1.18.7
func FindWithdrawalBlockAndArrayPosition ¶ added in v1.18.7
func GetBeaconState ¶ added in v1.18.7
func GetBeaconState(bc beacon.Client) (eth2.BeaconState, error)
func GetChildBlockTimestampForSlot ¶ added in v1.18.7
func GetMegapoolQueueDetails ¶ added in v1.18.0
func GetMegapoolQueueDetails(rp *rocketpool.RocketPool) (api.QueueDetails, error)
func GetMegapoolValidatorDetails ¶ added in v1.18.0
func GetMegapoolValidatorDetails(rp *rocketpool.RocketPool, bc beacon.Client, mp megapool.Megapool, megapoolAddress common.Address, validatorCount uint32) ([]api.MegapoolValidatorDetails, error)
func GetNodeMegapoolDetails ¶ added in v1.18.0
func GetNodeMegapoolDetails(rp *rocketpool.RocketPool, bc beacon.Client, nodeAccount common.Address) (api.MegapoolDetails, error)
Get all node megapool details
func GetPasswordManager ¶
func GetPasswordManager(c *cli.Context) (*passwords.PasswordManager, error)
func GetRocketPool ¶
func GetRocketPool(c *cli.Context) (*rocketpool.RocketPool, error)
func GetRocketSignerRegistry ¶ added in v1.13.6
func GetRocketSignerRegistry(c *cli.Context) (*contracts.RocketSignerRegistry, error)
func GetValidatorProof ¶ added in v1.18.0
func GetValidatorProof(c *cli.Context, slot uint64, wallet wallet.Wallet, eth2Config beacon.Eth2Config, megapoolAddress common.Address, validatorPubkey types.ValidatorPubkey, beaconState eth2.BeaconState) (megapool.ValidatorProof, uint64, megapool.SlotProof, error)
func GetWithdrawableEpochProof ¶ added in v1.18.0
func GetWithdrawableEpochProof(c *cli.Context, wallet *wallet.Wallet, eth2Config beacon.Eth2Config, megapoolAddress common.Address, validatorPubkey types.ValidatorPubkey) (api.ValidatorWithdrawableEpochProof, error)
func GetWithdrawalProofForSlot ¶ added in v1.18.0
func GetWithdrawalProofForSlot(c *cli.Context, slot uint64, validatorIndex uint64) (megapool.FinalBalanceProof, uint64, eth2.BeaconState, error)
func IsSyncWithinThreshold ¶ added in v1.4.0
func IsSyncWithinThreshold(ec rocketpool.ExecutionClient) (bool, time.Time, error)
Confirm the EC's latest block is within the threshold of the current system clock
func NewEthClient ¶ added in v1.18.0
func RequireEthClientSynced ¶
func RequireNodeRegistered ¶
func RequireNodeSecurityMember ¶ added in v1.13.0
func RequireNodeTrusted ¶ added in v1.0.0
func RequireNodeWallet ¶
func RequireRocketStorage ¶
func WaitNodeHdPassword ¶ added in v1.15.7
func WaitNodeRegistered ¶
This check makes calls to GetHdWallet instead of GetWallet as it's used in node and watchtower
Types ¶
type BeaconClientManager ¶ added in v1.5.0
type BeaconClientManager struct {
// contains filtered or unexported fields
}
This is a proxy for multiple Beacon clients, providing natural fallback support if one of them fails.
func GetBeaconClient ¶
func GetBeaconClient(c *cli.Context) (*BeaconClientManager, error)
func NewBeaconClientManager ¶ added in v1.5.0
func NewBeaconClientManager(cfg *config.RocketPoolConfig) (*BeaconClientManager, error)
Creates a new BeaconClientManager instance based on the Rocket Pool config
func (*BeaconClientManager) ChangeWithdrawalCredentials ¶ added in v1.9.0
func (m *BeaconClientManager) ChangeWithdrawalCredentials(validatorIndex string, fromBlsPubkey types.ValidatorPubkey, toExecutionAddress common.Address, signature types.ValidatorSignature) error
Change the withdrawal credentials for a validator
func (*BeaconClientManager) CheckStatus ¶ added in v1.5.0
func (m *BeaconClientManager) CheckStatus() *api.ClientManagerStatus
func (*BeaconClientManager) Close ¶ added in v1.5.0
func (m *BeaconClientManager) Close() error
Close the connection to the Beacon client
func (*BeaconClientManager) ExitValidator ¶ added in v1.5.0
func (m *BeaconClientManager) ExitValidator(validatorIndex string, epoch uint64, signature types.ValidatorSignature) error
Voluntarily exit a validator
func (*BeaconClientManager) GetAllValidators ¶ added in v1.18.0
func (m *BeaconClientManager) GetAllValidators() ([]beacon.ValidatorStatus, error)
func (*BeaconClientManager) GetAttestations ¶ added in v1.6.0
func (m *BeaconClientManager) GetAttestations(blockId string) ([]beacon.AttestationInfo, bool, error)
Get the attestations in a Beacon chain block
func (*BeaconClientManager) GetBeaconBlock ¶ added in v1.5.0
func (m *BeaconClientManager) GetBeaconBlock(blockId string) (beacon.BeaconBlock, bool, error)
Get a Beacon chain block
func (*BeaconClientManager) GetBeaconBlockHeader ¶ added in v1.12.0
func (m *BeaconClientManager) GetBeaconBlockHeader(blockId string) (beacon.BeaconBlockHeader, bool, error)
func (*BeaconClientManager) GetBeaconBlockSSZ ¶ added in v1.18.0
func (m *BeaconClientManager) GetBeaconBlockSSZ(slot uint64) (*beacon.BeaconBlockSSZ, bool, error)
Get deneb beacon block by slot
func (*BeaconClientManager) GetBeaconHead ¶ added in v1.5.0
func (m *BeaconClientManager) GetBeaconHead() (beacon.BeaconHead, error)
Get the Beacon chain's head information
func (*BeaconClientManager) GetBeaconStateSSZ ¶ added in v1.18.0
func (m *BeaconClientManager) GetBeaconStateSSZ(slot uint64) (*beacon.BeaconStateSSZ, error)
Get the Beacon State information
func (*BeaconClientManager) GetClientType ¶ added in v1.5.0
func (m *BeaconClientManager) GetClientType() (beacon.BeaconClientType, error)
Get the client's process mode
func (*BeaconClientManager) GetCommitteesForEpoch ¶ added in v1.5.0
func (m *BeaconClientManager) GetCommitteesForEpoch(epoch *uint64) (beacon.Committees, error)
Get the attestation committees for an epoch
func (*BeaconClientManager) GetDomainData ¶ added in v1.5.0
func (m *BeaconClientManager) GetDomainData(domainType []byte, epoch uint64, useGenesisFork bool) ([]byte, error)
Get the Beacon chain's domain data
func (*BeaconClientManager) GetEth1DataForEth2Block ¶ added in v1.5.0
func (m *BeaconClientManager) GetEth1DataForEth2Block(blockId string) (beacon.Eth1Data, bool, error)
Get the EL data for a CL block
func (*BeaconClientManager) GetEth2Config ¶ added in v1.5.0
func (m *BeaconClientManager) GetEth2Config() (beacon.Eth2Config, error)
Get the Beacon configuration
func (*BeaconClientManager) GetEth2DepositContract ¶ added in v1.5.0
func (m *BeaconClientManager) GetEth2DepositContract() (beacon.Eth2DepositContract, error)
Get the Beacon configuration
func (*BeaconClientManager) GetSyncStatus ¶ added in v1.5.0
func (m *BeaconClientManager) GetSyncStatus() (beacon.SyncStatus, error)
Get the client's sync status
func (*BeaconClientManager) GetValidatorBalances ¶ added in v1.15.0
func (m *BeaconClientManager) GetValidatorBalances(indices []string, opts *beacon.ValidatorStatusOptions) (map[string]*big.Int, error)
Get the validator balances for a set of validators at a given slot
func (*BeaconClientManager) GetValidatorBalancesSafe ¶ added in v1.15.0
func (m *BeaconClientManager) GetValidatorBalancesSafe(indices []string, opts *beacon.ValidatorStatusOptions) (map[string]*big.Int, error)
Get the validator balances for a set of validators at a given slot, with backoff.
func (*BeaconClientManager) GetValidatorIndex ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorIndex(pubkey types.ValidatorPubkey) (string, error)
Get a validator's index
func (*BeaconClientManager) GetValidatorProposerDuties ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorProposerDuties(indices []string, epoch uint64) (map[string]uint64, error)
Get a validator's proposer duties
func (*BeaconClientManager) GetValidatorStatus ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
Get a validator's status by its pubkey
func (*BeaconClientManager) GetValidatorStatusByIndex ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorStatusByIndex(index string, opts *beacon.ValidatorStatusOptions) (beacon.ValidatorStatus, error)
Get a validator's status by its index
func (*BeaconClientManager) GetValidatorStatuses ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *beacon.ValidatorStatusOptions) (map[types.ValidatorPubkey]beacon.ValidatorStatus, error)
Get the statuses of multiple validators by their pubkeys
func (*BeaconClientManager) GetValidatorSyncDuties ¶ added in v1.5.0
func (m *BeaconClientManager) GetValidatorSyncDuties(indices []string, epoch uint64) (map[string]bool, error)
Get a validator's sync duties
type ExecutionClientManager ¶ added in v1.4.0
type ExecutionClientManager struct {
// contains filtered or unexported fields
}
This is a proxy for multiple ETH clients, providing natural fallback support if one of them fails.
func GetEthClient ¶
func GetEthClient(c *cli.Context) (*ExecutionClientManager, error)
func NewExecutionClientManager ¶ added in v1.4.0
func NewExecutionClientManager(cfg *config.RocketPoolConfig) (*ExecutionClientManager, error)
Creates a new ExecutionClientManager instance based on the Rocket Pool config
func (*ExecutionClientManager) BalanceAt ¶ added in v1.4.0
func (p *ExecutionClientManager) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt returns the wei balance of the given account. The block number can be nil, in which case the balance is taken from the latest known block.
func (*ExecutionClientManager) BlockNumber ¶ added in v1.4.0
func (p *ExecutionClientManager) BlockNumber(ctx context.Context) (uint64, error)
BlockNumber returns the most recent block number
func (*ExecutionClientManager) CallContract ¶ added in v1.4.0
func (p *ExecutionClientManager) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract executes an Ethereum contract call with the specified data as the input.
func (*ExecutionClientManager) ChainID ¶ added in v1.16.0
BlockNumber returns the most recent block number
func (*ExecutionClientManager) CheckStatus ¶ added in v1.4.0
func (p *ExecutionClientManager) CheckStatus(cfg *config.RocketPoolConfig) *api.ClientManagerStatus
func (*ExecutionClientManager) CodeAt ¶ added in v1.4.0
func (p *ExecutionClientManager) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt returns the code of the given account. This is needed to differentiate between contract internal errors and the local chain being out of sync.
func (*ExecutionClientManager) EstimateGas ¶ added in v1.4.0
func (p *ExecutionClientManager) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)
EstimateGas tries to estimate the gas needed to execute a specific transaction based on the current pending state of the backend blockchain. There is no guarantee that this is the true gas limit requirement as other transactions may be added or removed by miners, but it should provide a basis for setting a reasonable default.
func (*ExecutionClientManager) FilterLogs ¶ added in v1.4.0
func (p *ExecutionClientManager) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
FilterLogs executes a log filter operation, blocking during execution and returning all the results in one batch.
TODO(karalabe): Deprecate when the subscription one can return past data too.
func (*ExecutionClientManager) HeaderByHash ¶ added in v1.5.0
func (p *ExecutionClientManager) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
HeaderByHash returns the block header with the given hash.
func (*ExecutionClientManager) HeaderByNumber ¶ added in v1.4.0
func (p *ExecutionClientManager) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
HeaderByNumber returns a block header from the current canonical chain. If number is nil, the latest known header is returned.
func (*ExecutionClientManager) LatestBlockTime ¶ added in v1.18.0
func (*ExecutionClientManager) NonceAt ¶ added in v1.4.0
func (p *ExecutionClientManager) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt returns the account nonce of the given account. The block number can be nil, in which case the nonce is taken from the latest known block.
func (*ExecutionClientManager) PendingCodeAt ¶ added in v1.4.0
func (p *ExecutionClientManager) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
PendingCodeAt returns the code of the given account in the pending state.
func (*ExecutionClientManager) PendingNonceAt ¶ added in v1.4.0
func (p *ExecutionClientManager) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
PendingNonceAt retrieves the current pending nonce associated with an account.
func (*ExecutionClientManager) SendTransaction ¶ added in v1.4.0
func (p *ExecutionClientManager) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction injects the transaction into the pending pool for execution.
func (*ExecutionClientManager) SubscribeFilterLogs ¶ added in v1.4.0
func (p *ExecutionClientManager) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs creates a background log filtering operation, returning a subscription immediately, which can be used to stream the found events.
func (*ExecutionClientManager) SuggestGasPrice ¶ added in v1.4.0
SuggestGasPrice retrieves the currently suggested gas price to allow a timely execution of a transaction.
func (*ExecutionClientManager) SuggestGasTipCap ¶ added in v1.4.0
SuggestGasTipCap retrieves the currently suggested 1559 priority fee to allow a timely execution of a transaction.
func (*ExecutionClientManager) SyncProgress ¶ added in v1.4.0
func (p *ExecutionClientManager) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
SyncProgress retrieves the current progress of the sync algorithm. If there's no sync currently running, it returns nil.
func (*ExecutionClientManager) TransactionByHash ¶ added in v1.4.0
func (p *ExecutionClientManager) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
TransactionByHash returns the transaction with the given hash.
func (*ExecutionClientManager) TransactionReceipt ¶ added in v1.4.0
func (p *ExecutionClientManager) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt returns the receipt of a transaction by transaction hash. Note that the receipt is not available for pending transactions.