Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EthOpts = &networkOpts{ endpoint: etherscanUrl, } BscOpts = &networkOpts{ endpoint: bscscanUrl, } PolygonOpts = &networkOpts{ endpoint: polygonscanUrl, } FtmOpts = &networkOpts{ endpoint: ftmscanUrl, } OptimEthOpts = &networkOpts{ endpoint: optimetherscanUrl, } )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetErc20TokenTransfers ¶
func (c *Client) GetErc20TokenTransfers(ctx context.Context, address string, opts *Erc20TokenTransfersOpts) (*Erc20TokenTransfersRes, int, error)
GetErc20TokenTransfers gets a list of "ERC-20 - Token Transfer Events" by Address
type Erc20TokenTransfersOpts ¶
type Erc20TokenTransfersOpts struct { // startblock: starting blockNo to retrieve results StartBlock string // endblock: ending blockNo to retrieve results EndBlock string // sort order, asc or desc Sort string // To get paginated results use page=<page number> Page string // offset=<max records to return> Offset string // To get transfer events for a specific token contract, include the contractaddress paramete ContractAddress string }
type Erc20TokenTransfersRes ¶
type Tx ¶
type Tx struct { BlockNumber string `json:"blockNumber"` TimeStamp string `json:"timeStamp"` Hash string `json:"hash"` Nonce string `json:"nonce"` BlockHash string `json:"blockHash"` From string `json:"from"` ContractAddress string `json:"contractAddress"` To string `json:"to"` Value string `json:"value"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` TokenDecimal string `json:"tokenDecimal"` TransactionIndex string `json:"transactionIndex"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` GasUsed string `json:"gasUsed"` CumulativeGasUsed string `json:"cumulativeGasUsed"` Input string `json:"input"` Confirmations string `json:"confirmations"` }
Click to show internal directories.
Click to hide internal directories.