burrow: github.com/hyperledger/burrow/rpc Index | Files | Directories

package rpc

import "github.com/hyperledger/burrow/rpc"


Package Files

codec.go config.go eth.go grpc.go jsonrpc.go result.go rpc.pb.go service.go test.sol.go


const (
    INVALID_REQUEST  = -32600
    METHOD_NOT_FOUND = -32601
    INVALID_PARAMS   = -32602
    INTERNAL_ERROR   = -32603
    PARSE_ERROR      = -32700

JSON-RPC 2.0 error codes.

const AnyLocal = ""
const LocalHost = ""

'LocalHost' gets interpreted as ipv6 TODO: revisit this

const MaxBlockLookback = 1000

Magic! Should probably be configurable, but not shouldn't be so huge we end up DoSing ourselves.


var Abi_HelloWorld = []byte("" /* 171 byte string literal not displayed */)
var Bytecode_HelloWorld = hex.MustDecodeString("" /* 636 byte string literal not displayed */)
var DeployedBytecode_HelloWorld = hex.MustDecodeString("" /* 572 byte string literal not displayed */)

func NewAminoCodec Uses

func NewAminoCodec() *amino.Codec

func NewGRPCServer Uses

func NewGRPCServer(logger *logging.Logger) *grpc.Server

type AccountHumanReadable Uses

type AccountHumanReadable struct {
    Address     crypto.Address
    PublicKey   crypto.PublicKey
    Sequence    uint64
    Balance     uint64
    Code        []string
    Permissions []string
    Roles       []string

type Block Uses

type Block struct {

Needed for go-amino handling of interface types

func (Block) MarshalJSON Uses

func (b Block) MarshalJSON() ([]byte, error)

func (*Block) UnmarshalJSON Uses

func (b *Block) UnmarshalJSON(data []byte) (err error)

type BlockMeta Uses

type BlockMeta struct {

func (BlockMeta) MarshalJSON Uses

func (bm BlockMeta) MarshalJSON() ([]byte, error)

func (*BlockMeta) UnmarshalJSON Uses

func (bm *BlockMeta) UnmarshalJSON(data []byte) (err error)

type Codec Uses

type Codec interface {
    EncodeBytes(interface{}) ([]byte, error)
    Encode(interface{}, io.Writer) error
    DecodeBytes(interface{}, []byte) error
    Decode(interface{}, io.Reader) error

Used for rpc request and response data.

type EthService Uses

type EthService struct {
    // contains filtered or unexported fields

EthService is a web3 provider

func NewEthService Uses

func NewEthService(accounts acmstate.IterableStatsReader,
    events EventsReader, blockchain bcm.BlockchainInfo,
    validators validator.History, nodeView *tendermint.NodeView,
    trans *execution.Transactor, keyStore *keys.FilesystemKeyStore,
    logger *logging.Logger) *EthService

NewEthService returns our web3 provider

func (*EthService) EthAccounts Uses

func (srv *EthService) EthAccounts() (*web3.EthAccountsResult, error)

EthAccounts returns all accounts signable from the local node

func (*EthService) EthBlockNumber Uses

func (srv *EthService) EthBlockNumber() (*web3.EthBlockNumberResult, error)

EthBlockNumber returns the latest height

func (*EthService) EthCall Uses

func (srv *EthService) EthCall(req *web3.EthCallParams) (*web3.EthCallResult, error)

EthCall executes a new message call immediately without creating a transaction

func (*EthService) EthChainId Uses

func (srv *EthService) EthChainId() (*web3.EthChainIdResult, error)

EthChainId returns the chainID

func (*EthService) EthCoinbase Uses

func (srv *EthService) EthCoinbase() (*web3.EthCoinbaseResult, error)

func (*EthService) EthEstimateGas Uses

func (srv *EthService) EthEstimateGas(req *web3.EthEstimateGasParams) (*web3.EthEstimateGasResult, error)

func (*EthService) EthGasPrice Uses

func (srv *EthService) EthGasPrice() (*web3.EthGasPriceResult, error)

func (*EthService) EthGetBalance Uses

func (srv *EthService) EthGetBalance(req *web3.EthGetBalanceParams) (*web3.EthGetBalanceResult, error)

EthGetBalance returns an accounts balance, or an error if it does not exist

func (*EthService) EthGetBlockByHash Uses

func (srv *EthService) EthGetBlockByHash(req *web3.EthGetBlockByHashParams) (*web3.EthGetBlockByHashResult, error)

EthGetBlockByHash iterates through all headers to find a matching block height for a given hash

func (*EthService) EthGetBlockByNumber Uses

func (srv *EthService) EthGetBlockByNumber(req *web3.EthGetBlockByNumberParams) (*web3.EthGetBlockByNumberResult, error)

EthGetBlockByNumber returns block info at the given height

func (*EthService) EthGetBlockTransactionCountByHash Uses

func (srv *EthService) EthGetBlockTransactionCountByHash(req *web3.EthGetBlockTransactionCountByHashParams) (*web3.EthGetBlockTransactionCountByHashResult, error)

EthGetBlockTransactionCountByHash returns the number of transactions in a block matching a given hash

func (*EthService) EthGetBlockTransactionCountByNumber Uses

func (srv *EthService) EthGetBlockTransactionCountByNumber(req *web3.EthGetBlockTransactionCountByNumberParams) (*web3.EthGetBlockTransactionCountByNumberResult, error)

EthGetBlockTransactionCountByNumber returns the number of transactions in a block matching a given height

func (*EthService) EthGetCode Uses

func (srv *EthService) EthGetCode(req *web3.EthGetCodeParams) (*web3.EthGetCodeResult, error)

EthGetCode returns the EVM bytecode at an address

func (*EthService) EthGetFilterChanges Uses

func (srv *EthService) EthGetFilterChanges(req *web3.EthGetFilterChangesParams) (*web3.EthGetFilterChangesResult, error)

func (*EthService) EthGetFilterLogs Uses

func (srv *EthService) EthGetFilterLogs(req *web3.EthGetFilterLogsParams) (*web3.EthGetFilterLogsResult, error)

func (*EthService) EthGetLogs Uses

func (srv *EthService) EthGetLogs(req *web3.EthGetLogsParams) (*web3.EthGetLogsResult, error)

func (*EthService) EthGetProof Uses

func (srv *EthService) EthGetProof(req *web3.EthGetProofParams) (*web3.EthGetProofResult, error)

func (*EthService) EthGetRawTransactionByBlockHashAndIndex Uses

func (srv *EthService) EthGetRawTransactionByBlockHashAndIndex(req *web3.EthGetRawTransactionByBlockHashAndIndexParams) (*web3.EthGetRawTransactionByBlockHashAndIndexResult, error)

func (*EthService) EthGetRawTransactionByBlockNumberAndIndex Uses

func (srv *EthService) EthGetRawTransactionByBlockNumberAndIndex(req *web3.EthGetRawTransactionByBlockNumberAndIndexParams) (*web3.EthGetRawTransactionByBlockNumberAndIndexResult, error)

func (*EthService) EthGetRawTransactionByHash Uses

func (srv *EthService) EthGetRawTransactionByHash(req *web3.EthGetRawTransactionByHashParams) (*web3.EthGetRawTransactionByHashResult, error)

func (*EthService) EthGetStorageAt Uses

func (srv *EthService) EthGetStorageAt(req *web3.EthGetStorageAtParams) (*web3.EthGetStorageAtResult, error)

func (*EthService) EthGetTransactionByBlockHashAndIndex Uses

func (srv *EthService) EthGetTransactionByBlockHashAndIndex(req *web3.EthGetTransactionByBlockHashAndIndexParams) (*web3.EthGetTransactionByBlockHashAndIndexResult, error)

func (*EthService) EthGetTransactionByBlockNumberAndIndex Uses

func (srv *EthService) EthGetTransactionByBlockNumberAndIndex(req *web3.EthGetTransactionByBlockNumberAndIndexParams) (*web3.EthGetTransactionByBlockNumberAndIndexResult, error)

func (*EthService) EthGetTransactionByHash Uses

func (srv *EthService) EthGetTransactionByHash(req *web3.EthGetTransactionByHashParams) (*web3.EthGetTransactionByHashResult, error)

EthGetTransactionByHash finds a tx by the given hash

func (*EthService) EthGetTransactionCount Uses

func (srv *EthService) EthGetTransactionCount(req *web3.EthGetTransactionCountParams) (*web3.EthGetTransactionCountResult, error)

EthGetTransactionCount returns the number of transactions sent from an address

func (*EthService) EthGetTransactionReceipt Uses

func (srv *EthService) EthGetTransactionReceipt(req *web3.EthGetTransactionReceiptParams) (*web3.EthGetTransactionReceiptResult, error)

EthGetTransactionReceipt returns the receipt of a previously committed tx

func (*EthService) EthGetUncleByBlockHashAndIndex Uses

func (srv *EthService) EthGetUncleByBlockHashAndIndex(req *web3.EthGetUncleByBlockHashAndIndexParams) (*web3.EthGetUncleByBlockHashAndIndexResult, error)

func (*EthService) EthGetUncleByBlockNumberAndIndex Uses

func (srv *EthService) EthGetUncleByBlockNumberAndIndex(req *web3.EthGetUncleByBlockNumberAndIndexParams) (*web3.EthGetUncleByBlockNumberAndIndexResult, error)

func (*EthService) EthGetUncleCountByBlockHash Uses

func (srv *EthService) EthGetUncleCountByBlockHash(req *web3.EthGetUncleCountByBlockHashParams) (*web3.EthGetUncleCountByBlockHashResult, error)

func (*EthService) EthGetUncleCountByBlockNumber Uses

func (srv *EthService) EthGetUncleCountByBlockNumber(req *web3.EthGetUncleCountByBlockNumberParams) (*web3.EthGetUncleCountByBlockNumberResult, error)

func (*EthService) EthGetWork Uses

func (srv *EthService) EthGetWork() (*web3.EthGetWorkResult, error)

func (*EthService) EthHashrate Uses

func (srv *EthService) EthHashrate() (*web3.EthHashrateResult, error)

EthHashrate returns the configured tendermint commit timeout

func (*EthService) EthMining Uses

func (srv *EthService) EthMining() (*web3.EthMiningResult, error)

EthMining returns true if client is a validator

func (*EthService) EthNewBlockFilter Uses

func (srv *EthService) EthNewBlockFilter() (*web3.EthNewBlockFilterResult, error)

func (*EthService) EthNewFilter Uses

func (srv *EthService) EthNewFilter(req *web3.EthNewFilterParams) (*web3.EthNewFilterResult, error)

func (*EthService) EthNewPendingTransactionFilter Uses

func (srv *EthService) EthNewPendingTransactionFilter() (*web3.EthNewPendingTransactionFilterResult, error)

func (*EthService) EthPendingTransactions Uses

func (srv *EthService) EthPendingTransactions() (*web3.EthPendingTransactionsResult, error)

EthPendingTransactions returns all txs in the mempool

func (*EthService) EthProtocolVersion Uses

func (srv *EthService) EthProtocolVersion() (*web3.EthProtocolVersionResult, error)

EthProtocolVersion returns the version of tendermint

func (*EthService) EthSendRawTransaction Uses

func (srv *EthService) EthSendRawTransaction(req *web3.EthSendRawTransactionParams) (*web3.EthSendRawTransactionResult, error)

func (*EthService) EthSendTransaction Uses

func (srv *EthService) EthSendTransaction(req *web3.EthSendTransactionParams) (*web3.EthSendTransactionResult, error)

EthSendTransaction constructs, signs and broadcasts a tx from the local node Note: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1767.md#rationale

func (*EthService) EthSign Uses

func (srv *EthService) EthSign(req *web3.EthSignParams) (*web3.EthSignResult, error)

EthSign: https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign

func (*EthService) EthSubmitHashrate Uses

func (srv *EthService) EthSubmitHashrate(req *web3.EthSubmitHashrateParams) (*web3.EthSubmitHashrateResult, error)

func (*EthService) EthSubmitWork Uses

func (srv *EthService) EthSubmitWork(*web3.EthSubmitWorkParams) (*web3.EthSubmitWorkResult, error)

func (*EthService) EthSyncing Uses

func (srv *EthService) EthSyncing() (*web3.EthSyncingResult, error)

EthSyncing returns this nodes syncing status (i.e. whether it has caught up)

func (*EthService) EthUninstallFilter Uses

func (srv *EthService) EthUninstallFilter(*web3.EthUninstallFilterParams) (*web3.EthUninstallFilterResult, error)

func (*EthService) NetListening Uses

func (srv *EthService) NetListening() (*web3.NetListeningResult, error)

NetListening returns true if the peer is running

func (*EthService) NetPeerCount Uses

func (srv *EthService) NetPeerCount() (*web3.NetPeerCountResult, error)

NetPeerCount returns the number of connected peers

func (*EthService) NetVersion Uses

func (srv *EthService) NetVersion() (*web3.NetVersionResult, error)

NetVersion returns the hex encoding of the network id, this is typically a small int (where 1 == Ethereum mainnet)

func (*EthService) Web3ClientVersion Uses

func (srv *EthService) Web3ClientVersion() (*web3.Web3ClientVersionResult, error)

Web3ClientVersion returns the version of burrow

func (*EthService) Web3Sha3 Uses

func (srv *EthService) Web3Sha3(req *web3.Web3Sha3Params) (*web3.Web3Sha3Result, error)

Web3Sha3 returns Keccak-256 (not the standardized SHA3-256) of the given data

type EventsReader Uses

type EventsReader interface {
    TxsAtHeight(height uint64) ([]*exec.TxExecution, error)
    TxByHash(txHash []byte) (*exec.TxExecution, error)

type MetricsConfig Uses

type MetricsConfig struct {
    MetricsPath     string
    BlockSampleSize int

func DefaultMetricsConfig Uses

func DefaultMetricsConfig() *MetricsConfig

type RPCConfig Uses

type RPCConfig struct {
    Info     *ServerConfig  `json:",omitempty" toml:",omitempty"`
    Profiler *ServerConfig  `json:",omitempty" toml:",omitempty"`
    GRPC     *ServerConfig  `json:",omitempty" toml:",omitempty"`
    Metrics  *MetricsConfig `json:",omitempty" toml:",omitempty"`
    Web3     *ServerConfig  `json:",omitempty" toml:",omitempty"`

func DefaultRPCConfig Uses

func DefaultRPCConfig() *RPCConfig

type RPCError Uses

type RPCError struct {
    Code    int    `json:"code"`
    Message string `json:"message"`

RPCError MUST be included in the Response object if an error occured

func (RPCError) Error Uses

func (err RPCError) Error() string

type RPCErrorResponse Uses

type RPCErrorResponse struct {
    Error   *RPCError `json:"error"`
    Id      string    `json:"id"`
    JSONRPC string    `json:"jsonrpc"`

RPCErrorResponse MUST NOT contain the result member if an error occured

func (*RPCErrorResponse) AssertIsRPCResponse Uses

func (rpcErrorResponse *RPCErrorResponse) AssertIsRPCResponse() bool

AssertIsRPCResponse implements a marker method for RPCErrorResponse to implement the interface RPCResponse

type RPCRequest Uses

type RPCRequest struct {
    JSONRPC string          `json:"jsonrpc"`
    Method  string          `json:"method"`
    Params  json.RawMessage `json:"params"`
    Id      string          `json:"id"`

Request and Response objects. Id is a string. Error data not used. Refer to JSON-RPC specification http://www.jsonrpc.org/specification

func NewRPCRequest Uses

func NewRPCRequest(id string, method string, params json.RawMessage) *RPCRequest

Create a new RPC request. This is the generic struct that is passed to RPC methods

type RPCResponse Uses

type RPCResponse interface {
    AssertIsRPCResponse() bool

RPCResponse MUST follow the JSON-RPC specification for Response object reference: http://www.jsonrpc.org/specification#response_object

func NewRPCErrorResponse Uses

func NewRPCErrorResponse(id string, code int, message string) RPCResponse

NewRPCErrorResponse creates a new error-response object from the error code and message

func NewRPCResponse Uses

func NewRPCResponse(id string, res interface{}) RPCResponse

NewRPCResponse creates a new response object from a result

type RPCResultResponse Uses

type RPCResultResponse struct {
    Result  interface{} `json:"result"`
    Id      string      `json:"id"`
    JSONRPC string      `json:"jsonrpc"`

RPCResultResponse MUST NOT contain the error member if no error occurred

func (*RPCResultResponse) AssertIsRPCResponse Uses

func (rpcResultResponse *RPCResultResponse) AssertIsRPCResponse() bool

AssertIsRPCResponse implements a marker method for RPCResultResponse to implement the interface RPCResponse

type RawTx Uses

type RawTx struct {
    Nonce    uint64 `json:"nonce"`
    GasPrice uint64 `json:"gasPrice"`
    GasLimit uint64 `json:"gasLimit"`
    To       []byte `json:"to"`
    Value    []byte `json:"value"`
    Data     []byte `json:"data"`

    V   uint64 `json:"v"`
    R   []byte `json:"r"`
    S   []byte `json:"s"`

type ResultAccount Uses

type ResultAccount struct {
    Account *acm.Account

type ResultAccountHumanReadable Uses

type ResultAccountHumanReadable struct {
    Account *AccountHumanReadable

type ResultAccountStats Uses

type ResultAccountStats struct {
    AccountsWithCode    uint64
    AccountsWithoutCode uint64

type ResultAccounts Uses

type ResultAccounts struct {
    BlockHeight uint64
    Accounts    []*acm.Account

type ResultBlock Uses

type ResultBlock struct {
    BlockMeta *BlockMeta
    Block     *Block

type ResultBlocks Uses

type ResultBlocks struct {
    LastHeight uint64
    BlockMetas []*tmTypes.BlockMeta

type ResultChainId Uses

type ResultChainId struct {
    ChainName   string
    ChainId     string
    GenesisHash binary.HexBytes

type ResultConsensusState Uses

type ResultConsensusState struct {

type ResultDumpStorage Uses

type ResultDumpStorage struct {
    StorageItems []StorageItem

type ResultGeneratePrivateAccount Uses

type ResultGeneratePrivateAccount struct {
    PrivateAccount *acm.ConcretePrivateAccount

type ResultGenesis Uses

type ResultGenesis struct {
    Genesis genesis.GenesisDoc

type ResultName Uses

type ResultName struct {
    Entry *names.Entry

type ResultNames Uses

type ResultNames struct {
    BlockHeight uint64
    Names       []*names.Entry

type ResultNetwork Uses

type ResultNetwork struct {
    ThisNode *tendermint.NodeInfo

type ResultNetworkRegistry Uses

type ResultNetworkRegistry struct {
    Address crypto.Address

type ResultPeers Uses

type ResultPeers struct {
    Peers []core_types.Peer

type ResultSignTx Uses

type ResultSignTx struct {
    Tx *txs.Envelope

type ResultStatus Uses

type ResultStatus struct {
    ChainID       string                                        `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
    RunID         string                                        `protobuf:"bytes,2,opt,name=RunID,proto3" json:"RunID,omitempty"`
    BurrowVersion string                                        `protobuf:"bytes,3,opt,name=BurrowVersion,proto3" json:"BurrowVersion,omitempty"`
    GenesisHash   github_com_hyperledger_burrow_binary.HexBytes `protobuf:"bytes,4,opt,name=GenesisHash,proto3,customtype=github.com/hyperledger/burrow/binary.HexBytes" json:"GenesisHash"`
    NodeInfo      *tendermint.NodeInfo                          `protobuf:"bytes,5,opt,name=NodeInfo,proto3" json:"NodeInfo,omitempty"`
    SyncInfo      *bcm.SyncInfo                                 `protobuf:"bytes,6,opt,name=SyncInfo,proto3" json:"SyncInfo,omitempty"`
    // When catching up in fast sync
    CatchingUp           bool                 `protobuf:"varint,8,opt,name=CatchingUp,proto3" json:""`
    ValidatorInfo        *validator.Validator `protobuf:"bytes,7,opt,name=ValidatorInfo,proto3" json:"ValidatorInfo,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`

func Status Uses

func Status(blockchain bcm.BlockchainInfo, validators validator.History, nodeView *tendermint.NodeView, blockTimeWithin,
    blockSeenTimeWithin string) (*ResultStatus, error)

func (*ResultStatus) Descriptor Uses

func (*ResultStatus) Descriptor() ([]byte, []int)

func (*ResultStatus) GetBurrowVersion Uses

func (m *ResultStatus) GetBurrowVersion() string

func (*ResultStatus) GetCatchingUp Uses

func (m *ResultStatus) GetCatchingUp() bool

func (*ResultStatus) GetChainID Uses

func (m *ResultStatus) GetChainID() string

func (*ResultStatus) GetNodeInfo Uses

func (m *ResultStatus) GetNodeInfo() *tendermint.NodeInfo

func (*ResultStatus) GetRunID Uses

func (m *ResultStatus) GetRunID() string

func (*ResultStatus) GetSyncInfo Uses

func (m *ResultStatus) GetSyncInfo() *bcm.SyncInfo

func (*ResultStatus) GetValidatorInfo Uses

func (m *ResultStatus) GetValidatorInfo() *validator.Validator

func (*ResultStatus) ProtoMessage Uses

func (*ResultStatus) ProtoMessage()

func (*ResultStatus) Reset Uses

func (m *ResultStatus) Reset()

func (*ResultStatus) Size Uses

func (m *ResultStatus) Size() (n int)

func (*ResultStatus) String Uses

func (m *ResultStatus) String() string

func (*ResultStatus) XXX_DiscardUnknown Uses

func (m *ResultStatus) XXX_DiscardUnknown()

func (*ResultStatus) XXX_Marshal Uses

func (m *ResultStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResultStatus) XXX_Merge Uses

func (m *ResultStatus) XXX_Merge(src proto.Message)

func (*ResultStatus) XXX_MessageName Uses

func (*ResultStatus) XXX_MessageName() string

func (*ResultStatus) XXX_Size Uses

func (m *ResultStatus) XXX_Size() int

func (*ResultStatus) XXX_Unmarshal Uses

func (m *ResultStatus) XXX_Unmarshal(b []byte) error

type ResultStorage Uses

type ResultStorage struct {
    Key   binary.HexBytes
    Value binary.HexBytes

type ResultSubscribe Uses

type ResultSubscribe struct {
    EventID        string
    SubscriptionID string

type ResultUnconfirmedTxs Uses

type ResultUnconfirmedTxs struct {
    NumTxs int
    Txs    []*txs.Envelope

type ResultUnsubscribe Uses

type ResultUnsubscribe struct {
    SubscriptionID string

type ResultValidators Uses

type ResultValidators struct {
    BlockHeight         uint64
    BondedValidators    []*validator.Validator
    UnbondingValidators []*validator.Validator

type RoundState Uses

type RoundState struct {

TODO use round state in ResultConsensusState - currently there are some part of RoundState have no Unmarshal

func (RoundState) MarshalJSON Uses

func (rs RoundState) MarshalJSON() ([]byte, error)

func (*RoundState) UnmarshalJSON Uses

func (rs *RoundState) UnmarshalJSON(data []byte) (err error)

type ServerConfig Uses

type ServerConfig struct {
    Enabled    bool
    ListenHost string
    ListenPort string

func DefaultGRPCConfig Uses

func DefaultGRPCConfig() *ServerConfig

func DefaultInfoConfig Uses

func DefaultInfoConfig() *ServerConfig

func DefaultProfilerConfig Uses

func DefaultProfilerConfig() *ServerConfig

func DefaultWeb3Config Uses

func DefaultWeb3Config() *ServerConfig

func (*ServerConfig) ListenAddress Uses

func (sc *ServerConfig) ListenAddress() string

type Service Uses

type Service struct {
    // contains filtered or unexported fields

Base service that provides implementation for all underlying RPC methods

func NewService Uses

func NewService(state acmstate.IterableStatsReader, nameReg names.IterableReader, nodeReg registry.IterableReader, blockchain bcm.BlockchainInfo,
    validators validator.History, nodeView *tendermint.NodeView, logger *logging.Logger) *Service

Service provides an internal query and information service with serialisable return types on which can accomodate a number of transport front ends

func (*Service) Account Uses

func (s *Service) Account(address crypto.Address) (*ResultAccount, error)


func (*Service) AccountHumanReadable Uses

func (s *Service) AccountHumanReadable(address crypto.Address) (*ResultAccountHumanReadable, error)

func (*Service) AccountStats Uses

func (s *Service) AccountStats() (*ResultAccountStats, error)

func (*Service) Accounts Uses

func (s *Service) Accounts(predicate func(*acm.Account) bool) (*ResultAccounts, error)

func (*Service) Block Uses

func (s *Service) Block(height uint64) (*ResultBlock, error)

func (*Service) BlockchainInfo Uses

func (s *Service) BlockchainInfo() bcm.BlockchainInfo

func (*Service) Blocks Uses

func (s *Service) Blocks(minHeight, maxHeight int64) (*ResultBlocks, error)

Returns the current blockchain height and metadata for a range of blocks between minHeight and maxHeight. Only returns maxBlockLookback block metadata from the top of the range of blocks. Passing 0 for maxHeight sets the upper height of the range to the current blockchain height.

func (*Service) ChainID Uses

func (s *Service) ChainID() string

func (*Service) ChainIdentifiers Uses

func (s *Service) ChainIdentifiers() (*ResultChainId, error)

func (*Service) ConsensusState Uses

func (s *Service) ConsensusState() (*ResultConsensusState, error)

func (*Service) DumpStorage Uses

func (s *Service) DumpStorage(address crypto.Address) (*ResultDumpStorage, error)

func (*Service) GeneratePrivateAccount Uses

func (s *Service) GeneratePrivateAccount() (*ResultGeneratePrivateAccount, error)

func (*Service) Genesis Uses

func (s *Service) Genesis() (*ResultGenesis, error)

func (*Service) Name Uses

func (s *Service) Name(name string) (*ResultName, error)

Name registry

func (*Service) Names Uses

func (s *Service) Names(predicate func(*names.Entry) bool) (*ResultNames, error)

func (*Service) Network Uses

func (s *Service) Network() (*ResultNetwork, error)

func (*Service) NetworkRegistry Uses

func (s *Service) NetworkRegistry() ([]*ResultNetworkRegistry, error)

func (*Service) Peers Uses

func (s *Service) Peers() []core_types.Peer

func (*Service) Stats Uses

func (s *Service) Stats() acmstate.AccountStatsGetter

func (*Service) Status Uses

func (s *Service) Status() (*ResultStatus, error)

func (*Service) StatusWithin Uses

func (s *Service) StatusWithin(blockTimeWithin, blockSeenTimeWithin string) (*ResultStatus, error)

func (*Service) Storage Uses

func (s *Service) Storage(address crypto.Address, key []byte) (*ResultStorage, error)

func (*Service) UnconfirmedTxs Uses

func (s *Service) UnconfirmedTxs(maxTxs int64) (*ResultUnconfirmedTxs, error)

func (*Service) Validators Uses

func (s *Service) Validators() (*ResultValidators, error)

type StorageItem Uses

type StorageItem struct {
    Key   binary.HexBytes
    Value binary.HexBytes


lib/serverCommons for HTTP handling
web3Code generated by go-openrpc.

Package rpc imports 49 packages (graph) and is imported by 46 packages. Updated 2020-04-24. Refresh now. Tools for package owners.