trace

package
v0.0.0-...-bcfd2cf Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(r *postgres.Pg, k kv.DB, c *cache.Cache) *service

NewService instantiates a new Service layer for customer

func Routes

func Routes(g *echo.Group, s Service)

Routes mounts /trace based routes on the main group

Types

type Cluster

type Cluster struct {
	Type     string `json:"type,omitempty"`
	Message  string `json:"message,omitempty"`
	Nickname string `json:"nickname,omitempty"`
	Verified bool   `json:"verified,omitempty"`
}

Cluster struct to classify the address in a certain cluster

type Flow

type Flow struct {
	Traces     []map[string]Trace `json:"traces"`
	Occurences []string           `json:"occurences"`
}

Flow list of maps creating monetary flow

type Next

type Next struct {
	TxID     string    `json:"txid"`
	Receiver string    `json:"receiver"`
	Vout     uint32    `json:"vout"`
	Amount   float64   `json:"amount"`
	Weight   float64   `json:"weight"`
	Analysis string    `json:"analysis"`
	Clusters []Cluster `json:"clusters"`
}

Next spending tx info

type Service

type Service interface {
	TraceAddress(address string, limit, skip int) (tracing *Flow, err error)
	// contains filtered or unexported methods
}

Service interface exports available methods for block service

type Trace

type Trace struct {
	TxID string `json:"txid"`
	Next []Next `json:"next"`
}

Trace between ouput and spending tx for tracing

Jump to

Keyboard shortcuts

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