Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbiResponse ¶
type Block ¶
type Block struct { Number uint64 `bson:"number,omitempty"` Hash string `bson:"hash,omitempty"` TxHash string `bson:"tx_hash,omitempty"` Difficulty string `bson:"difficulty,omitempty"` GasUsed uint64 `bson:"gas_used,omitempty"` GasLimit uint64 `bson:"gas_limit,omitempty"` Root string `bson:"root,omitempty"` ReceivedAt primitive.DateTime `bson:"received_at,omitempty"` ReceiptHash string `bson:"receipt_hash,omitempty"` ParentHash string `bson:"parent_hash,omitempty"` Bloom string `bson:"bloom,omitempty"` Time primitive.DateTime `bson:"time,omitempty"` BaseFee uint64 `bson:"base_fee,omitempty"` Coinbase string `bson:"coinbase,omitempty"` Nonce string `bson:"nonce,omitempty"` }
type EthScanResponse ¶
type Logs ¶
type Logs struct { Address string `bson:"address,omitempty"` Topics []string `bson:"topics,omitempty"` Data string `bson:"data,omitempty"` Index uint64 `bson:"index,omitempty"` Function string `bson:"function,omitempty"` Action string `bson:"action,omitempty"` ActionType string `bson:"action_type,omitempty"` Token string `bson:"token,omitempty"` Parameters interface{} `bson:"parameters,omitempty"` Removed bool `bson:"removed,omitempty"` }
type PriceHistory ¶
type TokenData ¶
type TokenData struct { TimedPrice float64 `bson:"time_price,omitempty"` Time primitive.DateTime `bson:"time,omitempty"` TotalVolume primitive.Decimal128 `bson:"total_volume,omitempty"` Tags []string `bson:"tags,omitempty"` Deployer string `bson:"deployer,omitempty"` DeployerAddress string `bson:"deployer_address,omitempty"` Social map[string]string `bson:"social,omitempty"` Decimal any `bson:"decimal,omitempty"` Icon string `bson:"icon,omitempty"` Name string `bson:"name,omitempty"` Symbol string `bson:"short,omitempty"` Address string `bson:"address,omitempty"` TokenType string `bson:"token_type,omitempty"` ProxyContract bool `bson:"proxy,omitempty"` ProxyAddress string `bson:"proxy_address,omitempty"` Chain int `bson:"chain,omitempty"` ERCType string `bson:"erc,omitempty"` }
type Transaction ¶
type Transaction struct { Index int `json:"index" bson:"index"` From string `json:"from" bson:"From"` To string `json:"to" bson:"To"` Hash string `json:"hash" bson:"Hash"` Block int64 `json:"block" bson:"Block"` Chain int `json:"chain" bson:"Chain"` TotalCost float64 `json:"total_cost" bson:"total_cost"` TransactionCost float64 `json:"transaction_cost" bson:"transaction_cost"` Logs []Logs `json:"logs" bson:"logs"` IsNFT bool `json:"is_nft" bson:"is_nft"` RawTransaction *types.Transaction `json:"raw_transaction" bson:"raw_transaction"` RawReciept *types.Receipt `json:"raw_reciept" bson:"raw_reciept"` IsSwap bool `json:"is_swap" bson:"is_swap"` IsSwapNft bool `json:"is_swap_nft" bson:"is_swap_nft"` ERCType string `json:"erc_type" bson:"erc_type"` Value primitive.Decimal128 `json:"value" bson:"value"` InteractedTokens []string `json:"interacted_tokens" bson:"interacted_tokens"` Swap *Swap `json:"swap" bson:"swap"` NFT []*NFT `json:"nft" bson:"nft"` Date primitive.DateTime `json:"date" bson:"date"` }
type TransactionDetails ¶
type TransactionDetails struct { From string `bson:"from,omitempty"` To string `bson:"to,omitempty"` Block Block `bson:"block,omitempty"` Hash string `bson:"hash,omitempty"` ContractAddress string `bson:"contract_address,omitempty"` GasUsed uint64 `bson:"gas_used,omitempty"` GasPrice primitive.Decimal128 `bson:"gas_price,omitempty"` GasFeeCap primitive.Decimal128 `bson:"gas_fee_cap,omitempty"` GasTipCap primitive.Decimal128 `bson:"gas_tip_cap,omitempty"` CumulativeGasUsed uint64 `bson:"cumulative_gas_used,omitempty"` Status uint64 `bson:"status,omitempty"` Cost primitive.Decimal128 `bson:"cost,omitempty"` Type uint8 `bson:"type,omitempty"` Value primitive.Decimal128 `bson:"value,omitempty"` TransactionIndex uint64 `bson:"transaction_index,omitempty"` Bloom string `bson:"bloom,omitempty"` Logs []Logs `bson:"logs,omitempty"` Values *Values `bson:"values,omitempty"` Token *TokenData `bson:"token,omitempty"` TransactionType string `bson:"transaction_type,omitempty"` ContractType string `bson:"contract_type,omitempty"` IsNft bool `bson:"is_nft,omitempty"` IsSwap bool `bson:"is_swap,omitempty"` Nft map[string]any `bson:"nft,omitempty"` Data string `bson:"data,omitempty"` Date primitive.DateTime `bson:"date,omitempty"` InteractedTokens []TokenData `bson:"interacted_tokens,omitempty"` }
type TransactionInfo ¶
type TransactionInfo struct { From string `bson:"from,omitempty"` Chain int `bson:"chain"` To string `bson:"to,omitempty"` Block Block `bson:"block,omitempty"` Hash string `bson:"hash,omitempty"` Date primitive.DateTime `bson:"date,omitempty"` Type uint8 `bson:"type,omitempty"` Value primitive.Decimal128 `bson:"value,omitempty"` BaseToken *TokenData `bson:"base_token,omitempty"` TransactionCost primitive.Decimal128 `bson:"transaction_cost"` TransactionFee primitive.Decimal128 `bson:"transaction_fee"` TransactionIndex uint64 `bson:"transaction_index,omitempty"` Status uint64 `bson:"status,omitempty"` IsNft bool `bson:"is_nft,omitempty"` WaitData bool `bson:"wait_data,omitempty"` Nft map[string]any `bson:"nft,omitempty"` IsSwap bool `bson:"is_swap,omitempty"` Swap map[string]any `bson:"swap,omitempty"` TotalCostUSD uint64 `bson:"total_cost_usd,omitempty"` InteractedTokens []TokenData `bson:"interacted_tokens,omitempty"` TransactionAmountValue uint64 `bson:"transaction_amount_value"` Detail TransactionDetails `bson:"detail"` }
Click to show internal directories.
Click to hide internal directories.