blockchain

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChain

type BlockChain struct {
	TXsByCategory wallet.TXsByCategory
	// contains filtered or unexported fields
}

func New

func New() *BlockChain

func (*BlockChain) ParseTXsJSON

func (bc *BlockChain) ParseTXsJSON(reader io.Reader, currency string) (err error)

type JsonTX

type JsonTX struct {
	TxID string          `json:txid`
	Date string          `json:date`
	Fee  decimal.Decimal `json:fee,omitempty`
	From Wallets         `json:from,omitempty`
	To   Wallets         `json:to,omitempty`
}

type Wallet

type Wallet struct {
	Address string          `json:address`
	Amount  decimal.Decimal `json:amount`
}

type Wallets

type Wallets []Wallet

Jump to

Keyboard shortcuts

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