services

package
v0.0.0-...-9b21d29 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Network           string
	BlockNumber       int64
	BlockHash         string
	PreviousBlockHash string
	Transactions      []Transaction
}

type EtherscanExplorer

type EtherscanExplorer struct {
	// contains filtered or unexported fields
}

func NewEtherscanExplorer

func NewEtherscanExplorer(apiKey string) *EtherscanExplorer

func (*EtherscanExplorer) GetAllTransactionsForAddress

func (ex *EtherscanExplorer) GetAllTransactionsForAddress(address string) ([]Transaction, error)

type InvestigationService

type InvestigationService struct {
	// contains filtered or unexported fields
}

func NewInvestigationService

func NewInvestigationService(explorer *EtherscanExplorer) *InvestigationService

func (*InvestigationService) GetAllAssociatedTransactionsForAddress

func (i *InvestigationService) GetAllAssociatedTransactionsForAddress(address string, depth int) (*graph.Graph[string, types.AddressNode], error)

func (*InvestigationService) GraphToNodesAndEdges

type Network

type Network struct {
	Name                string `json:"name"`
	Currency            string `json:"currency"`
	ChainID             int64  `json:"chainID"`
	Decimals            int64  `json:"decimals"`
	StartingBlockNumber int64  `json:"startingBlockNumber"`
}

type Transaction

type Transaction struct {
	BlockNumber     int64
	BlockHash       string
	Network         string
	Currency        string
	TxHash          string
	Value           string
	From            string
	To              string
	ContractAddress string
}

Jump to

Keyboard shortcuts

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