rpcservice

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 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.IBlockchain, dp cm.Dispatcher, cb func(proto.Message) error) *Chainserver

NewChainServer creates an instance of chainserver

func (*Chainserver) CreateRawTx

CreateRawTx creates a unsigned raw transaction

func (*Chainserver) SendTx

func (s *Chainserver) SendTx(ctx context.Context, in *pb.SendTxRequest) (*pb.SendTxReply, error)

SendTx sends out a signed raw transaction

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