Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiGethRpc

Hierarchy

  • MultiGethRpc

Index

Constructors

constructor

  • Parameters

    • options: any

    Returns MultiGethRpc

Properties

methods

methods: Array<any>

rpc

rpc: Client

validator

validator: Ajv

Methods

eth_account

  • Returns a list of accounts owned by the client

    Returns Promise<IBROKEN>

eth_blockNumber

  • Gets a block for a given number

    Returns Promise<TBlockNumber>

eth_blockTransactionCountByHash

  • Returns the number of transactions in a block from a block matching the given block hash.

    Parameters

    Returns Promise<TBROKEN>

eth_blockTransactionCountByNumber

  • Returns the number of transactions in a block from a block matching the given block number.

    Parameters

    Returns Promise<TBROKEN>

eth_call

  • Executes a new message call (locally) immediately without creating a transaction on the block chain.

    Parameters

    Returns Promise<TBROKEN>

eth_coinbase

  • Returns the client coinbase address.

    Returns Promise<TBROKEN>

eth_compileLLL

  • Returns compiled LLL code.

    Parameters

    Returns Promise<TBROKEN>

eth_compileSerpent

  • Returns compiled Serpent code.

    Parameters

    Returns Promise<TBROKEN>

eth_compileSolidity

  • Returns compiled solidity code.

    Parameters

    Returns Promise<IBROKEN>

eth_estimateGas

  • Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.

    Parameters

    Returns Promise<TBROKEN>

eth_gasPrice

  • Returns the current price per gas in wei

    Returns Promise<TBROKEN>

eth_getBalance

  • Returns Ether balance of a given or account or contract

    Parameters

    Returns Promise<TBROKEN>

eth_getBlockByHash

eth_getBlockByNumber

eth_getCode

  • Returns code at a given contract address

    Parameters

    Returns Promise<TBROKEN>

eth_getCompilers

  • eth_getCompilers(): Promise<IBROKEN>
  • Returns a list of available compilers in the client.

    Returns Promise<IBROKEN>

eth_getFilterChanges

  • Polling method for a filter, which returns an array of logs which occurred since last poll.

    Parameters

    Returns Promise<IBROKEN>

eth_getFilterLogs

  • Returns an array of all logs matching filter with given id.

    Parameters

    Returns Promise<IBROKEN>

eth_getLogs

  • Returns an array of all logs matching a given filter object.

    Parameters

    Returns Promise<IBROKEN>

eth_getProof

  • Returns the account- and storage-values of the specified account including the Merkle-proof.

    Parameters

    Returns Promise<IBROKEN>

eth_getStorageAt

  • Gets a storage value from a contract address, a position, and an optional blockNumber

    Parameters

    Returns Promise<TBROKEN>

eth_getTransactionByBlockHashAndIndex

  • Returns the information about a transaction requested by the block hash and index of which it was mined.

    Parameters

    Returns Promise<IBROKEN>

eth_getTransactionByBlockNumberAndIndex

  • Returns the information about a transaction requested by the block hash and index of which it was mined.

    Parameters

    Returns Promise<IBROKEN>

eth_getTransactionByHash

  • Returns the information about a transaction requested by transaction hash.

    Parameters

    Returns Promise<IBROKEN>

eth_getTransactionCount

  • Returns the number of transactions sent from an address

    Parameters

    Returns Promise<TBROKEN>

eth_getTransactionReceipt

  • Returns the receipt information of a transaction by its hash.

    Parameters

    Returns Promise<IBROKEN>

eth_getUncleByBlockHashAndIndex

  • Returns information about a uncle of a block by hash and uncle index position.

    Parameters

    Returns Promise<IBROKEN>

eth_getUncleByBlockNumberAndIndex

  • Returns information about a uncle of a block by hash and uncle index position.

    Parameters

    Returns Promise<IBROKEN>

eth_getUncleCountByBlockHash

  • Returns the number of uncles in a block from a block matching the given block hash.

    Parameters

    Returns Promise<TBROKEN>

eth_getUncleCountByBlockNumber

  • Returns the number of uncles in a block from a block matching the given block number.

    Parameters

    Returns Promise<TBROKEN>

eth_getWork

  • Returns the hash of the current block, the seedHash, and the boundary condition to be met ('target').

    Returns Promise<IBROKEN>

eth_hashrate

  • Returns the number of hashes per second that the node is mining with.

    Returns Promise<TBROKEN>

eth_mining

  • Returns true if client is actively mining new blocks.

    Returns Promise<TBROKEN>

eth_newBlockFilter

  • eth_newBlockFilter(): Promise<TBROKEN>
  • Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.

    Returns Promise<TBROKEN>

eth_newFilter

  • Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call eth_getFilterChanges.

    Parameters

    Returns Promise<TBROKEN>

eth_newPendingTransactionFilter

  • eth_newPendingTransactionFilter(): Promise<TBROKEN>
  • Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call eth_getFilterChanges.

    Returns Promise<TBROKEN>

eth_protocolVersion

  • eth_protocolVersion(): Promise<TBROKEN>
  • Returns the current ethereum protocol version.

    Returns Promise<TBROKEN>

eth_sendRawTransaction

  • Creates new message call transaction or a contract creation for signed transactions.

    Parameters

    Returns Promise<TBROKEN>

eth_sendTransaction

  • Creates new message call transaction or a contract creation, if the data field contains code.

    Parameters

    Returns Promise<TBROKEN>

eth_sign

  • The sign method calculates an Ethereum specific signature with: sign(keccak256( '\x19Ethereum Signed Message: ' + len(message) + message))).

    Parameters

    Returns Promise<TBROKEN>

eth_submitHashrate

  • Returns an array of all logs matching a given filter object.

    Parameters

    Returns Promise<TBROKEN>

eth_submitWork

  • Used for submitting a proof-of-work solution.

    Parameters

    Returns Promise<TBROKEN>

eth_syncing

  • Returns an object with data about the sync status or false.

    Returns Promise<TBROKEN>

eth_uninstallFilter

  • Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additonally Filters timeout when they aren't requested with eth_getFilterChanges for a period of time.

    Parameters

    Returns Promise<TBROKEN>

Generated using TypeDoc