Ethex.Web3.JsonRpc (Ethex v1.1.1)
View SourceJson RPC.
This module wrap the nessisary methods used by ABI.
Summary
Functions
Returns the number of most recent block.
Executes a new message call immediately without creating a transaction on the block chain.
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.
Polling method for a filter, which returns an array of logs which occurred since last poll.
Returns an array of all logs matching filter with given id.
Returns an array of all logs matching a given filter object.
Returns the number of transactions sent from an address.
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.
Creates new message call transaction or a contract creation for signed transactions.
Functions
Returns the number of most recent block.
Executes a new message call immediately without creating a transaction on the block chain.
Parameters
- Object - The transaction call object
- from: DATA, 20 Bytes - (optional) The address the transaction is sent from.
- to: DATA, 20 Bytes - The address the transaction is directed to.
- gas: QUANTITY - (optional) Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.
- gasPrice: QUANTITY - (optional) Integer of the gasPrice used for each paid gas
- value: QUANTITY - (optional) Integer of the value sent with this transaction
- data: DATA - (optional) Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation
QUANTITY | TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter
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.
Polling method for a filter, which returns an array of logs which occurred since last poll.
Returns an array of all logs matching filter with given id.
Returns an array of all logs matching a given filter object.
Returns the number of transactions sent from an address.
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.
Example
iex(1)> filter = %{
...(1)> address: ["0x4aF359FC3dd065F185739EC2f8F444A746A912f2"],
...(1)> fromBlock: "0x16DF136",
...(1)> toBlock: "latest"
...(1)> }
Creates new message call transaction or a contract creation for signed transactions.