service

package
v0.0.0-...-1413895 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const SWAP2 = "0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822"
View Source
const SWAP3 = "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67"

1.scan block, get active account, contract 2.add trace table 3.mev detect

View Source
const Transfer = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"

Variables

This section is empty.

Functions

func GetNativePrice

func GetNativePrice(network string) decimal.Decimal

func GetTokenPrice

func GetTokenPrice(tokenAddress string, network string) decimal.Decimal

func GetTotalBalance

func GetTotalBalance(address string, network string) decimal.Decimal

func ScanBlock

func ScanBlock()

func ScanSignature

func ScanSignature(ctx context.Context)

func WalletTracker

func WalletTracker(accountAddress string, network string)

Types

type FunctionSignature

type FunctionSignature struct {
	Id             int             `json:"id"`
	CreatedAt      time.Time       `json:"created_at"`
	TextSignature  string          `json:"text_signature"`
	Name           string          `json:"name"`
	HexSignature   string          `json:"hex_signature"`
	BytesSignature json.RawMessage `json:"bytes_signature"`
}

func GetSignature

func GetSignature(signature string) (*FunctionSignature, error)

type ReceiptLog

type ReceiptLog struct {
	Data    string   `json:"data"`
	Topics  []string `json:"topics"`
	Address string   `json:"address"`
}

type WalletBalance

type WalletBalance struct {
	Symbol          string
	ContractAddress string
	Amount          decimal.Decimal
	ValueUsd        decimal.Decimal
	Percent         decimal.Decimal
}

func GetWalletBalanceDetail

func GetWalletBalanceDetail(accountAddress string, network string) []*WalletBalance

type WhaleOverview

type WhaleOverview struct {
	TxDominance     decimal.Decimal
	Represent       decimal.Decimal
	TotalBalance    decimal.Decimal
	TotalBalanceETH decimal.Decimal
}

Jump to

Keyboard shortcuts

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