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 ¶
func (s *Chainserver) CreateRawTx(ctx context.Context, in *pb.CreateRawTxRequest) (*pb.CreateRawTxReply, error)
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
Click to show internal directories.
Click to hide internal directories.