rpc

package
v0.0.0-...-9d299f0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RPCAlertLatency is the default threshold for RPC latency to be considered unhealthy and trigger an alert.
	// 100s is a reasonable threshold for most EVM chains
	RPCAlertLatency = time.Duration(100) * time.Second
)

Variables

This section is empty.

Functions

func CheckRPCStatus

func CheckRPCStatus(ctx context.Context, client interfaces.EVMRPCClient) (time.Time, error)

CheckRPCStatus checks the RPC status of the evm chain

func IsTxConfirmed

func IsTxConfirmed(
	ctx context.Context,
	client interfaces.EVMRPCClient,
	txHash string,
	confirmations uint64,
) (bool, error)

IsTxConfirmed checks if the transaction is confirmed with given confirmations

Types

This section is empty.

Jump to

Keyboard shortcuts

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