rpcservice

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chainserver

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

Chainserver is used to implement Chain Service

func NewChainServer

func NewChainServer(c config.RPC, b blockchain.Blockchain, dp dispatcher.Dispatcher, cb func(proto.Message) error) *Chainserver

NewChainServer creates an instance of chainserver

func (*Chainserver) CreateRawTransfer

CreateRawTransfer creates an unsigned raw transaction

func (*Chainserver) CreateRawVote

CreateRawVote creates an unsigned raw vote

func (*Chainserver) SendTransfer

SendTransfer sends out a signed raw transaction

func (*Chainserver) SendVote

SendVote sends out a signed vote

func (*Chainserver) Start

func (s *Chainserver) Start() error

Start starts the chain server

func (*Chainserver) Stop

func (s *Chainserver) Stop() error

Stop stops the chain server

Jump to

Keyboard shortcuts

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