address

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBitcoinAddress

func IsBitcoinAddress(text string) bool

IsBitcoinAddress returns true is the string is a bitcoin address

func NewService

func NewService(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 all /address based routes on the main group

Types

type Service

type Service interface {
	GetOccurences(address string) (occurences []string, err error)
	GetFirstOccurenceHeight(address string) (height int32, err error)
}

Service interface exports available methods for tx service

Jump to

Keyboard shortcuts

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