service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPayloadInfo

func GetPayloadInfo(p types.Payload, pVersion byte) service.PayloadInfo

func GetTransactionInfo

func GetTransactionInfo(cfg *service.Config, header *types.Header, tx *types.Transaction) *service.TransactionInfo

Types

type AssetInfo

type AssetInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Precision   byte   `json:"precision"`
	Height      uint32 `json:"height"`
	ID          string `json:"assetid"`
}

type HttpServiceExtend

type HttpServiceExtend struct {
	*service.HttpService
	// contains filtered or unexported fields
}

func NewHttpService

func NewHttpService(cfg *service.Config, store *blockchain.TokenChainStore) *HttpServiceExtend

func (*HttpServiceExtend) GetAssetByHash

func (s *HttpServiceExtend) GetAssetByHash(param util.Params) (interface{}, error)

func (*HttpServiceExtend) GetAssetList

func (s *HttpServiceExtend) GetAssetList(param util.Params) (interface{}, error)

func (*HttpServiceExtend) GetReceivedByAddress

func (s *HttpServiceExtend) GetReceivedByAddress(param util.Params) (interface{}, error)

func (*HttpServiceExtend) ListUnspent

func (s *HttpServiceExtend) ListUnspent(param util.Params) (interface{}, error)

Jump to

Keyboard shortcuts

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