Documentation
¶
Overview ¶
Package etherscan provides Go access to the Etherscan API. Documentation: https://docs.etherscan.io/api-endpoints
Index ¶
Constants ¶
View Source
const ( NetworkMainnet = "api.etherscan.io" NetworkGoerli = "api-goerli.etherscan.io" NetworkSepolia = "api-sepolia.etherscan.io" )
These are the current networks the API works against.
Variables ¶
This section is empty.
Functions ¶
func WithClient ¶
WithClient adds a custom client for processing requests. It's recommend to not use the default client and provide your own.
func WithHeader ¶
WithHeader adds a key/value pair to the request header for all calls made to the host. This is for things like authentication or application specific needs. These headers are already included: "Cache-Control": "no-cache", "Content-Type": "application/json", "Accept": "application/json"
func WithNetwork ¶
WithNetwork changes the default network which is Mainnet.
Types ¶
Click to show internal directories.
Click to hide internal directories.