blockchain

package
v0.0.0-...-461a668 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchBlockNumber

func FetchBlockNumber(rpcURL string, txHash string) (int64, error)

FetchBlockNumber retrieves the block number for a given transaction hash.

func FetchBlockTimestamp

func FetchBlockTimestamp(rpcURL string, blockNumber int64) (int64, error)

FetchBlockTimestamp queries an RPC endpoint for the timestamp of a given block number.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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