core

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

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

Wallet implements Wallet interface for blockchain manipulation

func New

func New(rpchost, rpcusername, rpcpassword string) (Wallet, error)

New create

func (Wallet) GetBlock

func (w Wallet) GetBlock(bestBlock bool, height int64) (*wallet.Block, error)

GetBlock get block

func (Wallet) GetConfirmationsFromTxID

func (w Wallet) GetConfirmationsFromTxID(txid string) (int64, error)

GetConfirmationsFromTxID returns confirmations given tx id

func (Wallet) GetDestAddress

func (w Wallet) GetDestAddress() (string, error)

GetDestAddress gets destination address

func (Wallet) GetReceivedSince

func (w Wallet) GetReceivedSince(prevHash, curHash string) ([]wallet.Transaction, error)

GetReceivedSince returns transactions since block

func (Wallet) SendFromAccountToAddress

func (w Wallet) SendFromAccountToAddress(account, address string, amount float64) (string, error)

SendFromAccountToAddress send coin to address, return transaction id

Jump to

Keyboard shortcuts

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