Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func NewAminoCodec() *amino.Codec
 - func NewGRPCServer(logger *logging.Logger) *grpc.Server
 - type AccountHumanReadable
 - type Block
 - type BlockMeta
 - type Codec
 - type EthService
 - func (srv *EthService) EthAccounts() (*web3.EthAccountsResult, error)
 - func (srv *EthService) EthBlockNumber() (*web3.EthBlockNumberResult, error)
 - func (srv *EthService) EthCall(req *web3.EthCallParams) (*web3.EthCallResult, error)
 - func (srv *EthService) EthChainId() (*web3.EthChainIdResult, error)
 - func (srv *EthService) EthCoinbase() (*web3.EthCoinbaseResult, error)
 - func (srv *EthService) EthEstimateGas(req *web3.EthEstimateGasParams) (*web3.EthEstimateGasResult, error)
 - func (srv *EthService) EthGasPrice() (*web3.EthGasPriceResult, error)
 - func (srv *EthService) EthGetBalance(req *web3.EthGetBalanceParams) (*web3.EthGetBalanceResult, error)
 - func (srv *EthService) EthGetBlockByHash(req *web3.EthGetBlockByHashParams) (*web3.EthGetBlockByHashResult, error)
 - func (srv *EthService) EthGetBlockByNumber(req *web3.EthGetBlockByNumberParams) (*web3.EthGetBlockByNumberResult, error)
 - func (srv *EthService) EthGetBlockTransactionCountByHash(req *web3.EthGetBlockTransactionCountByHashParams) (*web3.EthGetBlockTransactionCountByHashResult, error)
 - func (srv *EthService) EthGetBlockTransactionCountByNumber(req *web3.EthGetBlockTransactionCountByNumberParams) (*web3.EthGetBlockTransactionCountByNumberResult, error)
 - func (srv *EthService) EthGetCode(req *web3.EthGetCodeParams) (*web3.EthGetCodeResult, error)
 - func (srv *EthService) EthGetFilterChanges(req *web3.EthGetFilterChangesParams) (*web3.EthGetFilterChangesResult, error)
 - func (srv *EthService) EthGetFilterLogs(req *web3.EthGetFilterLogsParams) (*web3.EthGetFilterLogsResult, error)
 - func (srv *EthService) EthGetLogs(req *web3.EthGetLogsParams) (*web3.EthGetLogsResult, error)
 - func (srv *EthService) EthGetProof(req *web3.EthGetProofParams) (*web3.EthGetProofResult, error)
 - func (srv *EthService) EthGetRawTransactionByBlockHashAndIndex(req *web3.EthGetRawTransactionByBlockHashAndIndexParams) (*web3.EthGetRawTransactionByBlockHashAndIndexResult, error)
 - func (srv *EthService) EthGetRawTransactionByBlockNumberAndIndex(req *web3.EthGetRawTransactionByBlockNumberAndIndexParams) (*web3.EthGetRawTransactionByBlockNumberAndIndexResult, error)
 - func (srv *EthService) EthGetRawTransactionByHash(req *web3.EthGetRawTransactionByHashParams) (*web3.EthGetRawTransactionByHashResult, error)
 - func (srv *EthService) EthGetStorageAt(req *web3.EthGetStorageAtParams) (*web3.EthGetStorageAtResult, error)
 - func (srv *EthService) EthGetTransactionByBlockHashAndIndex(req *web3.EthGetTransactionByBlockHashAndIndexParams) (*web3.EthGetTransactionByBlockHashAndIndexResult, error)
 - func (srv *EthService) EthGetTransactionByBlockNumberAndIndex(req *web3.EthGetTransactionByBlockNumberAndIndexParams) (*web3.EthGetTransactionByBlockNumberAndIndexResult, error)
 - func (srv *EthService) EthGetTransactionByHash(req *web3.EthGetTransactionByHashParams) (*web3.EthGetTransactionByHashResult, error)
 - func (srv *EthService) EthGetTransactionCount(req *web3.EthGetTransactionCountParams) (*web3.EthGetTransactionCountResult, error)
 - func (srv *EthService) EthGetTransactionReceipt(req *web3.EthGetTransactionReceiptParams) (*web3.EthGetTransactionReceiptResult, error)
 - func (srv *EthService) EthGetUncleByBlockHashAndIndex(req *web3.EthGetUncleByBlockHashAndIndexParams) (*web3.EthGetUncleByBlockHashAndIndexResult, error)
 - func (srv *EthService) EthGetUncleByBlockNumberAndIndex(req *web3.EthGetUncleByBlockNumberAndIndexParams) (*web3.EthGetUncleByBlockNumberAndIndexResult, error)
 - func (srv *EthService) EthGetUncleCountByBlockHash(req *web3.EthGetUncleCountByBlockHashParams) (*web3.EthGetUncleCountByBlockHashResult, error)
 - func (srv *EthService) EthGetUncleCountByBlockNumber(req *web3.EthGetUncleCountByBlockNumberParams) (*web3.EthGetUncleCountByBlockNumberResult, error)
 - func (srv *EthService) EthGetWork() (*web3.EthGetWorkResult, error)
 - func (srv *EthService) EthHashrate() (*web3.EthHashrateResult, error)
 - func (srv *EthService) EthMining() (*web3.EthMiningResult, error)
 - func (srv *EthService) EthNewBlockFilter() (*web3.EthNewBlockFilterResult, error)
 - func (srv *EthService) EthNewFilter(req *web3.EthNewFilterParams) (*web3.EthNewFilterResult, error)
 - func (srv *EthService) EthNewPendingTransactionFilter() (*web3.EthNewPendingTransactionFilterResult, error)
 - func (srv *EthService) EthPendingTransactions() (*web3.EthPendingTransactionsResult, error)
 - func (srv *EthService) EthProtocolVersion() (*web3.EthProtocolVersionResult, error)
 - func (srv *EthService) EthSendRawTransaction(req *web3.EthSendRawTransactionParams) (*web3.EthSendRawTransactionResult, error)
 - func (srv *EthService) EthSendTransaction(req *web3.EthSendTransactionParams) (*web3.EthSendTransactionResult, error)
 - func (srv *EthService) EthSign(req *web3.EthSignParams) (*web3.EthSignResult, error)
 - func (srv *EthService) EthSubmitHashrate(req *web3.EthSubmitHashrateParams) (*web3.EthSubmitHashrateResult, error)
 - func (srv *EthService) EthSubmitWork(*web3.EthSubmitWorkParams) (*web3.EthSubmitWorkResult, error)
 - func (srv *EthService) EthSyncing() (*web3.EthSyncingResult, error)
 - func (srv *EthService) EthUninstallFilter(*web3.EthUninstallFilterParams) (*web3.EthUninstallFilterResult, error)
 - func (srv *EthService) NetListening() (*web3.NetListeningResult, error)
 - func (srv *EthService) NetPeerCount() (*web3.NetPeerCountResult, error)
 - func (srv *EthService) NetVersion() (*web3.NetVersionResult, error)
 - func (srv *EthService) Web3ClientVersion() (*web3.Web3ClientVersionResult, error)
 - func (srv *EthService) Web3Sha3(req *web3.Web3Sha3Params) (*web3.Web3Sha3Result, error)
 
- type EventsReader
 - type MetricsConfig
 - type RPCConfig
 - type RPCError
 - type RPCErrorResponse
 - type RPCRequest
 - type RPCResponse
 - type RPCResultResponse
 - type RawTx
 - type ResultAccount
 - type ResultAccountHumanReadable
 - type ResultAccountStats
 - type ResultAccounts
 - type ResultBlock
 - type ResultBlocks
 - type ResultChainId
 - type ResultConsensusState
 - type ResultDumpStorage
 - type ResultGeneratePrivateAccount
 - type ResultGenesis
 - type ResultName
 - type ResultNames
 - type ResultNetwork
 - type ResultNetworkRegistry
 - type ResultPeers
 - type ResultSignTx
 - type ResultStatus
 - func (*ResultStatus) Descriptor() ([]byte, []int)
 - func (m *ResultStatus) GetBurrowVersion() string
 - func (m *ResultStatus) GetCatchingUp() bool
 - func (m *ResultStatus) GetChainID() string
 - func (m *ResultStatus) GetNodeInfo() *tendermint.NodeInfo
 - func (m *ResultStatus) GetRunID() string
 - func (m *ResultStatus) GetSyncInfo() *bcm.SyncInfo
 - func (m *ResultStatus) GetValidatorInfo() *validator.Validator
 - func (*ResultStatus) ProtoMessage()
 - func (m *ResultStatus) Reset()
 - func (m *ResultStatus) Size() (n int)
 - func (m *ResultStatus) String() string
 - func (m *ResultStatus) XXX_DiscardUnknown()
 - func (m *ResultStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
 - func (m *ResultStatus) XXX_Merge(src proto.Message)
 - func (*ResultStatus) XXX_MessageName() string
 - func (m *ResultStatus) XXX_Size() int
 - func (m *ResultStatus) XXX_Unmarshal(b []byte) error
 
- type ResultStorage
 - type ResultSubscribe
 - type ResultUnconfirmedTxs
 - type ResultUnsubscribe
 - type ResultValidators
 - type RoundState
 - type ServerConfig
 - type Service
 - func (s *Service) Account(address crypto.Address) (*ResultAccount, error)
 - func (s *Service) AccountHumanReadable(address crypto.Address) (*ResultAccountHumanReadable, error)
 - func (s *Service) AccountStats() (*ResultAccountStats, error)
 - func (s *Service) Accounts(predicate func(*acm.Account) bool) (*ResultAccounts, error)
 - func (s *Service) Block(height uint64) (*ResultBlock, error)
 - func (s *Service) BlockchainInfo() bcm.BlockchainInfo
 - func (s *Service) Blocks(minHeight, maxHeight int64) (*ResultBlocks, error)
 - func (s *Service) ChainID() string
 - func (s *Service) ChainIdentifiers() (*ResultChainId, error)
 - func (s *Service) ConsensusState() (*ResultConsensusState, error)
 - func (s *Service) DumpStorage(address crypto.Address) (*ResultDumpStorage, error)
 - func (s *Service) GeneratePrivateAccount() (*ResultGeneratePrivateAccount, error)
 - func (s *Service) Genesis() (*ResultGenesis, error)
 - func (s *Service) Name(name string) (*ResultName, error)
 - func (s *Service) Names(predicate func(*names.Entry) bool) (*ResultNames, error)
 - func (s *Service) Network() (*ResultNetwork, error)
 - func (s *Service) NetworkRegistry() ([]*ResultNetworkRegistry, error)
 - func (s *Service) Peers() []core_types.Peer
 - func (s *Service) Stats() acmstate.AccountStatsGetter
 - func (s *Service) Status() (*ResultStatus, error)
 - func (s *Service) StatusWithin(blockTimeWithin, blockSeenTimeWithin string) (*ResultStatus, error)
 - func (s *Service) Storage(address crypto.Address, key []byte) (*ResultStorage, error)
 - func (s *Service) UnconfirmedTxs(maxTxs int64) (*ResultUnconfirmedTxs, error)
 - func (s *Service) Validators() (*ResultValidators, error)
 
- type StorageItem
 
Constants ¶
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 = "0.0.0.0"
    const LocalHost = "127.0.0.1"
    '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.
Variables ¶
var Abi_HelloWorld = []byte(`[{"constant":true,"inputs":[],"name":"Hello","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"pure","type":"function"}]`)
    var Bytecode_HelloWorld = hex.MustDecodeString("608060405234801561001057600080fd5b5061011d806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063bcdfe0d514602d575b600080fd5b603360ab565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101560715780820151818401526020810190506058565b50505050905090810190601f168015609d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606040518060400160405280600c81526020017f48656c6c6f2c20576f726c64000000000000000000000000000000000000000081525090509056fea265627a7a723158200b2a5b7a53ba54371daa99f4d02346044f39e951d89df28ce64b4d36dd3fda0664736f6c634300050b0032")
    var DeployedBytecode_HelloWorld = hex.MustDecodeString("6080604052348015600f57600080fd5b506004361060285760003560e01c8063bcdfe0d514602d575b600080fd5b603360ab565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101560715780820151818401526020810190506058565b50505050905090810190601f168015609d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606040518060400160405280600c81526020017f48656c6c6f2c20576f726c64000000000000000000000000000000000000000081525090509056fea265627a7a723158200b2a5b7a53ba54371daa99f4d02346044f39e951d89df28ce64b4d36dd3fda0664736f6c634300050b0032")
    Functions ¶
func NewAminoCodec ¶ added in v0.20.1
Types ¶
type AccountHumanReadable ¶ added in v0.18.0
type Block ¶ added in v0.19.0
Needed for go-amino handling of interface types
func (Block) MarshalJSON ¶ added in v0.19.0
func (*Block) UnmarshalJSON ¶ added in v0.19.0
type BlockMeta ¶ added in v0.19.0
func (BlockMeta) MarshalJSON ¶ added in v0.19.0
func (*BlockMeta) UnmarshalJSON ¶ added in v0.19.0
type Codec ¶
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 ¶ added in v0.29.0
type EthService struct {
	// contains filtered or unexported fields
}
    EthService is a web3 provider
func NewEthService ¶ added in v0.29.0
func NewEthService(accounts acmstate.IterableStatsReader, events EventsReader, blockchain bcm.BlockchainInfo, validators validator.History, nodeView *tendermint.NodeView, trans *execution.Transactor, keyStore *keys.KeyStore, logger *logging.Logger) *EthService
NewEthService returns our web3 provider
func (*EthService) EthAccounts ¶ added in v0.29.0
func (srv *EthService) EthAccounts() (*web3.EthAccountsResult, error)
EthAccounts returns all accounts signable from the local node
func (*EthService) EthBlockNumber ¶ added in v0.29.0
func (srv *EthService) EthBlockNumber() (*web3.EthBlockNumberResult, error)
EthBlockNumber returns the latest height
func (*EthService) EthCall ¶ added in v0.29.0
func (srv *EthService) EthCall(req *web3.EthCallParams) (*web3.EthCallResult, error)
EthCall executes a new message call immediately without creating a transaction
func (*EthService) EthChainId ¶ added in v0.29.0
func (srv *EthService) EthChainId() (*web3.EthChainIdResult, error)
EthChainId returns the chainID
func (*EthService) EthCoinbase ¶ added in v0.29.0
func (srv *EthService) EthCoinbase() (*web3.EthCoinbaseResult, error)
func (*EthService) EthEstimateGas ¶ added in v0.29.0
func (srv *EthService) EthEstimateGas(req *web3.EthEstimateGasParams) (*web3.EthEstimateGasResult, error)
func (*EthService) EthGasPrice ¶ added in v0.29.0
func (srv *EthService) EthGasPrice() (*web3.EthGasPriceResult, error)
func (*EthService) EthGetBalance ¶ added in v0.29.0
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 ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (srv *EthService) EthGetBlockByNumber(req *web3.EthGetBlockByNumberParams) (*web3.EthGetBlockByNumberResult, error)
EthGetBlockByNumber returns block info at the given height
func (*EthService) EthGetBlockTransactionCountByHash ¶ added in v0.29.0
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 ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (srv *EthService) EthGetCode(req *web3.EthGetCodeParams) (*web3.EthGetCodeResult, error)
EthGetCode returns the EVM bytecode at an address
func (*EthService) EthGetFilterChanges ¶ added in v0.29.0
func (srv *EthService) EthGetFilterChanges(req *web3.EthGetFilterChangesParams) (*web3.EthGetFilterChangesResult, error)
func (*EthService) EthGetFilterLogs ¶ added in v0.29.0
func (srv *EthService) EthGetFilterLogs(req *web3.EthGetFilterLogsParams) (*web3.EthGetFilterLogsResult, error)
func (*EthService) EthGetLogs ¶ added in v0.29.0
func (srv *EthService) EthGetLogs(req *web3.EthGetLogsParams) (*web3.EthGetLogsResult, error)
func (*EthService) EthGetProof ¶ added in v0.29.0
func (srv *EthService) EthGetProof(req *web3.EthGetProofParams) (*web3.EthGetProofResult, error)
func (*EthService) EthGetRawTransactionByBlockHashAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetRawTransactionByBlockHashAndIndex(req *web3.EthGetRawTransactionByBlockHashAndIndexParams) (*web3.EthGetRawTransactionByBlockHashAndIndexResult, error)
func (*EthService) EthGetRawTransactionByBlockNumberAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetRawTransactionByBlockNumberAndIndex(req *web3.EthGetRawTransactionByBlockNumberAndIndexParams) (*web3.EthGetRawTransactionByBlockNumberAndIndexResult, error)
func (*EthService) EthGetRawTransactionByHash ¶ added in v0.29.0
func (srv *EthService) EthGetRawTransactionByHash(req *web3.EthGetRawTransactionByHashParams) (*web3.EthGetRawTransactionByHashResult, error)
func (*EthService) EthGetStorageAt ¶ added in v0.29.0
func (srv *EthService) EthGetStorageAt(req *web3.EthGetStorageAtParams) (*web3.EthGetStorageAtResult, error)
func (*EthService) EthGetTransactionByBlockHashAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetTransactionByBlockHashAndIndex(req *web3.EthGetTransactionByBlockHashAndIndexParams) (*web3.EthGetTransactionByBlockHashAndIndexResult, error)
func (*EthService) EthGetTransactionByBlockNumberAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetTransactionByBlockNumberAndIndex(req *web3.EthGetTransactionByBlockNumberAndIndexParams) (*web3.EthGetTransactionByBlockNumberAndIndexResult, error)
func (*EthService) EthGetTransactionByHash ¶ added in v0.29.0
func (srv *EthService) EthGetTransactionByHash(req *web3.EthGetTransactionByHashParams) (*web3.EthGetTransactionByHashResult, error)
EthGetTransactionByHash finds a tx by the given hash
func (*EthService) EthGetTransactionCount ¶ added in v0.29.0
func (srv *EthService) EthGetTransactionCount(req *web3.EthGetTransactionCountParams) (*web3.EthGetTransactionCountResult, error)
EthGetTransactionCount returns the number of transactions sent from an address
func (*EthService) EthGetTransactionReceipt ¶ added in v0.29.0
func (srv *EthService) EthGetTransactionReceipt(req *web3.EthGetTransactionReceiptParams) (*web3.EthGetTransactionReceiptResult, error)
EthGetTransactionReceipt returns the receipt of a previously committed tx
func (*EthService) EthGetUncleByBlockHashAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetUncleByBlockHashAndIndex(req *web3.EthGetUncleByBlockHashAndIndexParams) (*web3.EthGetUncleByBlockHashAndIndexResult, error)
func (*EthService) EthGetUncleByBlockNumberAndIndex ¶ added in v0.29.0
func (srv *EthService) EthGetUncleByBlockNumberAndIndex(req *web3.EthGetUncleByBlockNumberAndIndexParams) (*web3.EthGetUncleByBlockNumberAndIndexResult, error)
func (*EthService) EthGetUncleCountByBlockHash ¶ added in v0.29.0
func (srv *EthService) EthGetUncleCountByBlockHash(req *web3.EthGetUncleCountByBlockHashParams) (*web3.EthGetUncleCountByBlockHashResult, error)
func (*EthService) EthGetUncleCountByBlockNumber ¶ added in v0.29.0
func (srv *EthService) EthGetUncleCountByBlockNumber(req *web3.EthGetUncleCountByBlockNumberParams) (*web3.EthGetUncleCountByBlockNumberResult, error)
func (*EthService) EthGetWork ¶ added in v0.29.0
func (srv *EthService) EthGetWork() (*web3.EthGetWorkResult, error)
func (*EthService) EthHashrate ¶ added in v0.29.0
func (srv *EthService) EthHashrate() (*web3.EthHashrateResult, error)
EthHashrate returns the configured tendermint commit timeout
func (*EthService) EthMining ¶ added in v0.29.0
func (srv *EthService) EthMining() (*web3.EthMiningResult, error)
EthMining returns true if client is a validator
func (*EthService) EthNewBlockFilter ¶ added in v0.29.0
func (srv *EthService) EthNewBlockFilter() (*web3.EthNewBlockFilterResult, error)
func (*EthService) EthNewFilter ¶ added in v0.29.0
func (srv *EthService) EthNewFilter(req *web3.EthNewFilterParams) (*web3.EthNewFilterResult, error)
func (*EthService) EthNewPendingTransactionFilter ¶ added in v0.29.0
func (srv *EthService) EthNewPendingTransactionFilter() (*web3.EthNewPendingTransactionFilterResult, error)
func (*EthService) EthPendingTransactions ¶ added in v0.29.0
func (srv *EthService) EthPendingTransactions() (*web3.EthPendingTransactionsResult, error)
EthPendingTransactions returns all txs in the mempool
func (*EthService) EthProtocolVersion ¶ added in v0.29.0
func (srv *EthService) EthProtocolVersion() (*web3.EthProtocolVersionResult, error)
EthProtocolVersion returns the version of tendermint
func (*EthService) EthSendRawTransaction ¶ added in v0.29.0
func (srv *EthService) EthSendRawTransaction(req *web3.EthSendRawTransactionParams) (*web3.EthSendRawTransactionResult, error)
func (*EthService) EthSendTransaction ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (srv *EthService) EthSign(req *web3.EthSignParams) (*web3.EthSignResult, error)
EthSign: https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign
func (*EthService) EthSubmitHashrate ¶ added in v0.29.0
func (srv *EthService) EthSubmitHashrate(req *web3.EthSubmitHashrateParams) (*web3.EthSubmitHashrateResult, error)
func (*EthService) EthSubmitWork ¶ added in v0.29.0
func (srv *EthService) EthSubmitWork(*web3.EthSubmitWorkParams) (*web3.EthSubmitWorkResult, error)
func (*EthService) EthSyncing ¶ added in v0.29.0
func (srv *EthService) EthSyncing() (*web3.EthSyncingResult, error)
EthSyncing returns this nodes syncing status (i.e. whether it has caught up)
func (*EthService) EthUninstallFilter ¶ added in v0.29.0
func (srv *EthService) EthUninstallFilter(*web3.EthUninstallFilterParams) (*web3.EthUninstallFilterResult, error)
func (*EthService) NetListening ¶ added in v0.29.0
func (srv *EthService) NetListening() (*web3.NetListeningResult, error)
NetListening returns true if the peer is running
func (*EthService) NetPeerCount ¶ added in v0.29.0
func (srv *EthService) NetPeerCount() (*web3.NetPeerCountResult, error)
NetPeerCount returns the number of connected peers
func (*EthService) NetVersion ¶ added in v0.29.0
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 ¶ added in v0.29.0
func (srv *EthService) Web3ClientVersion() (*web3.Web3ClientVersionResult, error)
Web3ClientVersion returns the version of burrow
func (*EthService) Web3Sha3 ¶ added in v0.29.0
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 ¶ added in v0.29.0
type EventsReader interface {
	TxsAtHeight(height uint64) ([]*exec.TxExecution, error)
	TxByHash(txHash []byte) (*exec.TxExecution, error)
}
    type MetricsConfig ¶ added in v0.19.0
type MetricsConfig struct {
	ServerConfig
	MetricsPath     string
	BlockSampleSize int
}
    func DefaultMetricsConfig ¶ added in v0.19.0
func DefaultMetricsConfig() *MetricsConfig
type RPCConfig ¶ added in v0.18.0
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 ¶ added in v0.18.0
func DefaultRPCConfig() *RPCConfig
type RPCErrorResponse ¶
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 ¶
func (rpcErrorResponse *RPCErrorResponse) AssertIsRPCResponse() bool
AssertIsRPCResponse implements a marker method for RPCErrorResponse to implement the interface RPCResponse
type RPCRequest ¶
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 ¶ added in v0.16.2
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 ¶
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 ¶
func NewRPCErrorResponse(id string, code int, message string) RPCResponse
NewRPCErrorResponse creates a new error-response object from the error code and message
func NewRPCResponse ¶
func NewRPCResponse(id string, res interface{}) RPCResponse
NewRPCResponse creates a new response object from a result
type RPCResultResponse ¶
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 ¶
func (rpcResultResponse *RPCResultResponse) AssertIsRPCResponse() bool
AssertIsRPCResponse implements a marker method for RPCResultResponse to implement the interface RPCResponse
type ResultAccount ¶ added in v0.20.1
type ResultAccountHumanReadable ¶ added in v0.20.1
type ResultAccountHumanReadable struct {
	Account *AccountHumanReadable
}
    type ResultAccountStats ¶ added in v0.24.0
type ResultAccounts ¶ added in v0.20.1
type ResultBlock ¶ added in v0.20.1
type ResultBlocks ¶ added in v0.20.1
type ResultChainId ¶ added in v0.18.0
type ResultConsensusState ¶ added in v0.20.1
type ResultConsensusState struct {
	*core_types.ResultDumpConsensusState
}
    type ResultDumpStorage ¶ added in v0.18.0
type ResultDumpStorage struct {
	StorageItems []StorageItem
}
    type ResultGeneratePrivateAccount ¶ added in v0.18.0
type ResultGeneratePrivateAccount struct {
	PrivateAccount *acm.ConcretePrivateAccount
}
    type ResultGenesis ¶ added in v0.18.0
type ResultGenesis struct {
	Genesis genesis.GenesisDoc
}
    type ResultName ¶ added in v0.20.1
type ResultNames ¶ added in v0.20.1
type ResultNetwork ¶ added in v0.20.1
type ResultNetwork struct {
	ThisNode *tendermint.NodeInfo
	*core_types.ResultNetInfo
}
    type ResultNetworkRegistry ¶ added in v0.29.0
type ResultNetworkRegistry struct {
	Address crypto.Address
	registry.NodeIdentity
}
    type ResultPeers ¶ added in v0.18.0
type ResultPeers struct {
	Peers []core_types.Peer
}
    type ResultSignTx ¶ added in v0.18.0
type ResultStatus ¶ added in v0.18.0
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 ¶ added in v0.20.0
func Status(blockchain bcm.BlockchainInfo, validators validator.History, nodeView *tendermint.NodeView, blockTimeWithin, blockSeenTimeWithin string) (*ResultStatus, error)
func (*ResultStatus) Descriptor ¶ added in v0.20.0
func (*ResultStatus) Descriptor() ([]byte, []int)
func (*ResultStatus) GetBurrowVersion ¶ added in v0.20.1
func (m *ResultStatus) GetBurrowVersion() string
func (*ResultStatus) GetCatchingUp ¶ added in v0.24.3
func (m *ResultStatus) GetCatchingUp() bool
func (*ResultStatus) GetChainID ¶ added in v0.20.0
func (m *ResultStatus) GetChainID() string
func (*ResultStatus) GetNodeInfo ¶ added in v0.20.0
func (m *ResultStatus) GetNodeInfo() *tendermint.NodeInfo
func (*ResultStatus) GetRunID ¶ added in v0.20.1
func (m *ResultStatus) GetRunID() string
func (*ResultStatus) GetSyncInfo ¶ added in v0.20.1
func (m *ResultStatus) GetSyncInfo() *bcm.SyncInfo
func (*ResultStatus) GetValidatorInfo ¶ added in v0.20.1
func (m *ResultStatus) GetValidatorInfo() *validator.Validator
func (*ResultStatus) ProtoMessage ¶ added in v0.20.0
func (*ResultStatus) ProtoMessage()
func (*ResultStatus) Reset ¶ added in v0.20.0
func (m *ResultStatus) Reset()
func (*ResultStatus) Size ¶ added in v0.20.0
func (m *ResultStatus) Size() (n int)
func (*ResultStatus) String ¶ added in v0.20.0
func (m *ResultStatus) String() string
func (*ResultStatus) XXX_DiscardUnknown ¶ added in v0.23.0
func (m *ResultStatus) XXX_DiscardUnknown()
func (*ResultStatus) XXX_Marshal ¶ added in v0.23.0
func (m *ResultStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResultStatus) XXX_Merge ¶ added in v0.23.0
func (m *ResultStatus) XXX_Merge(src proto.Message)
func (*ResultStatus) XXX_MessageName ¶ added in v0.20.0
func (*ResultStatus) XXX_MessageName() string
func (*ResultStatus) XXX_Size ¶ added in v0.23.0
func (m *ResultStatus) XXX_Size() int
func (*ResultStatus) XXX_Unmarshal ¶ added in v0.23.0
func (m *ResultStatus) XXX_Unmarshal(b []byte) error
type ResultStorage ¶ added in v0.20.1
type ResultSubscribe ¶ added in v0.18.0
type ResultUnconfirmedTxs ¶ added in v0.20.1
type ResultUnsubscribe ¶ added in v0.18.0
type ResultUnsubscribe struct {
	SubscriptionID string
}
    type ResultValidators ¶ added in v0.20.1
type RoundState ¶ added in v0.20.1
type RoundState struct {
	*ctypes.RoundState
}
    TODO use round state in ResultConsensusState - currently there are some part of RoundState have no Unmarshal
func (RoundState) MarshalJSON ¶ added in v0.20.1
func (rs RoundState) MarshalJSON() ([]byte, error)
func (*RoundState) UnmarshalJSON ¶ added in v0.20.1
func (rs *RoundState) UnmarshalJSON(data []byte) (err error)
type ServerConfig ¶ added in v0.19.0
func DefaultGRPCConfig ¶ added in v0.19.0
func DefaultGRPCConfig() *ServerConfig
func DefaultInfoConfig ¶ added in v0.21.0
func DefaultInfoConfig() *ServerConfig
func DefaultProfilerConfig ¶ added in v0.18.0
func DefaultProfilerConfig() *ServerConfig
func DefaultWeb3Config ¶ added in v0.29.0
func DefaultWeb3Config() *ServerConfig
func (*ServerConfig) ListenAddress ¶ added in v0.19.0
func (sc *ServerConfig) ListenAddress() string
type Service ¶ added in v0.18.0
type Service struct {
	// contains filtered or unexported fields
}
    Base service that provides implementation for all underlying RPC methods
func NewService ¶ added in v0.18.0
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 ¶ added in v0.20.1
func (s *Service) Account(address crypto.Address) (*ResultAccount, error)
Accounts
func (*Service) AccountHumanReadable ¶ added in v0.20.1
func (s *Service) AccountHumanReadable(address crypto.Address) (*ResultAccountHumanReadable, error)
func (*Service) AccountStats ¶ added in v0.24.0
func (s *Service) AccountStats() (*ResultAccountStats, error)
func (*Service) Block ¶ added in v0.20.1
func (s *Service) Block(height uint64) (*ResultBlock, error)
func (*Service) BlockchainInfo ¶ added in v0.19.0
func (s *Service) BlockchainInfo() bcm.BlockchainInfo
func (*Service) Blocks ¶ added in v0.20.1
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) ChainIdentifiers ¶ added in v0.19.0
func (s *Service) ChainIdentifiers() (*ResultChainId, error)
func (*Service) ConsensusState ¶ added in v0.20.1
func (s *Service) ConsensusState() (*ResultConsensusState, error)
func (*Service) DumpStorage ¶ added in v0.18.0
func (s *Service) DumpStorage(address crypto.Address) (*ResultDumpStorage, error)
func (*Service) GeneratePrivateAccount ¶ added in v0.18.0
func (s *Service) GeneratePrivateAccount() (*ResultGeneratePrivateAccount, error)
func (*Service) Genesis ¶ added in v0.18.0
func (s *Service) Genesis() (*ResultGenesis, error)
func (*Service) Name ¶ added in v0.20.1
func (s *Service) Name(name string) (*ResultName, error)
Name registry
func (*Service) Network ¶ added in v0.20.1
func (s *Service) Network() (*ResultNetwork, error)
func (*Service) NetworkRegistry ¶ added in v0.29.0
func (s *Service) NetworkRegistry() ([]*ResultNetworkRegistry, error)
func (*Service) Peers ¶ added in v0.18.0
func (s *Service) Peers() []core_types.Peer
func (*Service) Stats ¶ added in v0.24.6
func (s *Service) Stats() acmstate.AccountStatsGetter
func (*Service) Status ¶ added in v0.18.0
func (s *Service) Status() (*ResultStatus, error)
func (*Service) StatusWithin ¶ added in v0.20.1
func (s *Service) StatusWithin(blockTimeWithin, blockSeenTimeWithin string) (*ResultStatus, error)
func (*Service) UnconfirmedTxs ¶ added in v0.20.1
func (s *Service) UnconfirmedTxs(maxTxs int64) (*ResultUnconfirmedTxs, error)
func (*Service) Validators ¶ added in v0.20.1
func (s *Service) Validators() (*ResultValidators, error)