rpc

package
v0.0.0-...-88ff46c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

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

func (*ApiService) EstimateTransactionGas

func (s *ApiService) EstimateTransactionGas(ctx context.Context, req *rpcpb.EstimateTransactionGasRequest) (*rpcpb.EstimateTransactionGasResponse, error)

EstimateTransactionGas estimate transaction gas

func (*ApiService) GetState

func (s *ApiService) GetState(ctx context.Context, req *rpcpb.NonParamsRequest) (*rpcpb.GetStateResponse, error)

func (*ApiService) ListAssets

func (s *ApiService) ListAssets(ctx context.Context, req *rpcpb.ListAssetsRequest) (*rpcpb.ListAssetsResponse, error)

func (*ApiService) ListTransactions

func (s *ApiService) ListTransactions(ctx context.Context, req *rpcpb.ListTransactionsRequest) (*rpcpb.ListTransactionsResponse, error)

func (*ApiService) SubmitTransaction

func (s *ApiService) SubmitTransaction(ctx context.Context, req *rpcpb.SubmitTransactionRequest) (*rpcpb.SubmitTransactionResponse, error)

SubmitTransaction submit transaction

type EstimateTxGasResp

type EstimateTxGasResp struct {
	TotalNeu   int64 `json:"total_neu"`
	StorageNeu int64 `json:"storage_neu"`
	VMNeu      int64 `json:"vm_neu"`
}

EstimateTxGasResp estimate transaction consumed gas

func EstimateTxGas

func EstimateTxGas(template txbuilder.Template) (*EstimateTxGasResp, error)

EstimateTxGas estimate consumed neu for transaction

type Rpc

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

func NewRpc

func NewRpc(chainCache *chaincache.ChainCache) *Rpc

func (*Rpc) Start

func (r *Rpc) Start(api_addr, rpc_addr string) error

func (*Rpc) Stop

func (r *Rpc) Stop()

Directories

Path Synopsis
Package rpcpb is a reverse proxy.
Package rpcpb is a reverse proxy.

Jump to

Keyboard shortcuts

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