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.
Click to show internal directories.
Click to hide internal directories.