Versions in this module Expand all Collapse all v0 v0.0.3 Nov 28, 2024 v0.0.2 Nov 4, 2024 Changes in this version + type BaseClient struct + AfterRequest func(name, module, action string, param map[string]interface{}, outcome interface{}, ...) + BeforeRequest func(name, module, action string, param map[string]interface{}) error + Verbose bool + func NewBaseClient(apiKey string, baseUrl string, verbose bool, timeout time.Duration) *BaseClient + func NewCustomizedClient(cc CustomizationClient) *BaseClient + func (bc *BaseClient) Call(name, module, action, apiUrl string, param map[string]interface{}, ...) (err error) + func (bc *BaseClient) CraftEtherScanURL(module, action string, param map[string]interface{}) (URL string) + func (bc *BaseClient) CraftOkLinkURL(apiUrl string) (URL string) + func (bc *BaseClient) CraftSolScanURL(apiUrl string, param map[string]interface{}) (URL string) + func (bc *BaseClient) HandleEtherscanResponse(action string, data []byte, outcome interface{}) error + func (bc *BaseClient) HandleOklinkResponse(data []byte, outcome interface{}) error + func (bc *BaseClient) HandleSolScanResponse(data []byte, outcome interface{}) error + type BlockRewards struct + BlockMiner string + BlockNumber int + BlockReward *common.BigInt + TimeStamp common.Time + UncleInclusionReward *common.BigInt + Uncles []struct{ ... } + type ContractSource struct + ABI string + CompilerVersion string + ConstructorArguments string + ContractName string + EVMVersion string + Implementation string + Library string + LicenseType string + OptimizationUsed int + Proxy string + Runs int + SourceCode string + SwarmSource string + type CustomizationClient struct + AfterRequest func(name, module, action string, param map[string]interface{}, outcome interface{}, ...) + BaseURL string + BeforeRequest func(name, module, action string, param map[string]interface{}) error + Client *http.Client + Key string + Timeout time.Duration + Verbose bool + type ERC1155Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *common.BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp common.Time + To string + TokenDecimal uint8 + TokenID *common.BigInt + TokenName string + TokenSymbol string + TokenValue uint8 + TransactionIndex int + type ERC20Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *common.BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp common.Time + To string + TokenDecimal uint8 + TokenName string + TokenSymbol string + TransactionIndex int + Value *common.BigInt + type ERC721Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *common.BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp common.Time + To string + TokenDecimal uint8 + TokenID *common.BigInt + TokenName string + TokenSymbol string + TransactionIndex int + type EtherscanEnvelope struct + Message string + Result json.RawMessage + Status int + type ExecutionStatus struct + ErrDescription string + IsError int + type GasPrices struct + FastGasPrice float64 + GasUsedRatio []float64 + LastBlock int + ProposeGasPrice float64 + SafeGasPrice float64 + SuggestBaseFeeInGwei float64 + func (gp *GasPrices) UnmarshalJSON(data []byte) error + type InternalTx struct + BlockNumber int + ContractAddress string + ErrCode string + From string + Gas int + GasUsed int + Hash string + Input string + IsError int + TimeStamp common.Time + To string + TraceID string + Type string + Value *common.BigInt + type LatestPrice struct + ETHBTC float64 + ETHBTCTimestamp common.Time + ETHUSD float64 + ETHUSDTimestamp common.Time + type Log struct + Address string + BlockHash string + BlockNumber string + Data string + LogIndex string + Removed bool + Topics []string + TransactionHash string + type MinedBlock struct + BlockNumber int + BlockReward *common.BigInt + TimeStamp common.Time + type NormalTx struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + FunctionName string + Gas int + GasPrice *common.BigInt + GasUsed int + Hash string + Input string + IsError int + MethodId string + Nonce int + TimeStamp common.Time + To string + TransactionIndex int + TxReceiptStatus string + Value *common.BigInt + type OklinkEnvelope struct + Code string + Data json.RawMessage + Msg string + type SolScanEnvelope struct + Data json.RawMessage + Errors struct{ ... } + Success bool + type SwapTransaction struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + FunctionName string + Gas int + GasPrice *common.BigInt + GasUsed int + Hash string + Input string + MethodId string + Nonce int + TimeStamp common.Time + To string + TokenDecimal uint8 + TokenID *common.BigInt + TokenName string + TokenSymbol string + TokenValue uint8 + TransactionIndex int v0.0.1-beta Sep 24, 2024 v0.0.1-alpha Sep 11, 2024