rpc

package
v0.0.0-...-f41d3e3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPHandlerStack

func NewHTTPHandlerStack(srv http.Handler, cors []string, vhosts []string, jwtSecret []byte) http.Handler

NewHTTPHandlerStack returns wrapped http-related handlers

Types

type AdminService

type AdminService struct {
}

func (*AdminService) NodeInfo

func (s *AdminService) NodeInfo() (interface{}, error)

type BlockchainService

type BlockchainService struct {
	Chain *blockchain.ChainindexBlockchain
}

func (*BlockchainService) GetBlockByHash

func (s *BlockchainService) GetBlockByHash(hash string) (*ci_pb.BcBlock, error)

func (*BlockchainService) GetBlockByHeight

func (s *BlockchainService) GetBlockByHeight(height uint64) (*ci_pb.BcBlock, error)

func (*BlockchainService) GetBlockByTx

func (s *BlockchainService) GetBlockByTx(txHash string) (*ci_pb.BcBlock, error)

func (*BlockchainService) GetHighestBlock

func (s *BlockchainService) GetHighestBlock() (*ci_pb.BcBlock, error)

func (*BlockchainService) GetTxByHash

func (s *BlockchainService) GetTxByHash(txHash string) (*ci_pb.Transaction, error)

func (*BlockchainService) Syncing

func (s *BlockchainService) Syncing() (interface{}, error)

Jump to

Keyboard shortcuts

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