wallet

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: GPL-3.0 Imports: 1 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 {
	Height         int64
	PrevHash       string
	Hash           string
	BlockCreatedAt time.Time
}

Block _

type Transaction

type Transaction struct {
	Address        string
	Amount         float64
	TransactionID  string
	Hash           string
	Confirmations  int64
	BlockCreatedAt time.Time
}

Transaction _

type Wallet

type Wallet interface {
	GetBlock(bestBlock bool, height int64) (*Block, error)
	GetReceivedSince(prevHash, curHash string) ([]Transaction, error)
	SendFromAccountToAddress(account, address string, amount float64) (string, error)
	GetDestAddress() (string, error)
	GetConfirmationsFromTxID(txID string) (int64, error)
}

Wallet defines interface that one should implement for blockchain manipulation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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