rpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Debug should be true if in testing

Functions

func GoNotify

func GoNotify(ctx context.Context, s *setting.Setting, nreg, creg func(chan []tx.Hash))

GoNotify runs gorouitine to get history of addresses in wallet. This func needs to run even if RPC is stopped for collecting history.

func Init

func Init(s *setting.Setting) error

Init initialize wallet struct.

func IsSecretEmpty

func IsSecretEmpty() bool

IsSecretEmpty returns true if wallet is empty.

func New

func New(s *setting.Setting, pwdd []byte) error

New initialize the wallet.

func Run

func Run(ctx context.Context, setting *setting.Setting) net.Listener

Run runs RPC server.

func Send

func Send(ctx context.Context, conf *setting.Setting, tag []byte, outputs ...*tx.RawOutput) (string, error)

Send sends token.

Types

type Dump

type Dump struct {
	Wallet *walletimpl.Wallet    `json:"wallet"`
	Hist   []*walletimpl.History `json:"history"`
}

Dump is a struct for dumpwallet RPC.

Jump to

Keyboard shortcuts

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