networkbroadcast

package
v0.0.0-...-bbfc9be Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(id caller.APIID, caller caller.Caller) *API

func (*API) BroadcastTransaction

func (api *API) BroadcastTransaction(tx *types.Transaction) error

BroadcastTransaction broadcast a transaction to the network.

func (*API) BroadcastTransactionSynchronous

func (api *API) BroadcastTransactionSynchronous(tx *types.Transaction) (*BroadcastResponse, error)

type BroadcastResponse

type BroadcastResponse struct {
	ID       string                 `json:"id"`
	BlockNum uint32                 `json:"block_num"`
	TrxNum   uint32                 `json:"trx_num"`
	Expired  bool                   `json:"expired"`
	Trx      map[string]interface{} `json:"trx"`
}

Jump to

Keyboard shortcuts

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