ExW3.Rpc (exw3 v0.6.1) View Source
Link to this section Summary
Functions
returns all available accounts
Returns current balance of account
Returns block data for specified block number
Returns the current block number
Simple eth_call to client. Recommended to use ExW3.Contract.call instead.
Simple eth_send_transaction. Recommended to use ExW3.Contract.send instead.
Calculates an Ethereum specific signature and signs the data provided, using the accounts private key
Gets event changes (logs) by filter. Unlike ExW3.Contract.get_filter_changes it does not return the data in a formatted way
Mines number of blocks specified. Default is 1
Creates a new filter, returns filter id. For more sophisticated use, prefer ExW3.Contract.filter.
Using the personal api, this method returns the address associated with the private key that was used to calculate the signature with personal_sign.
Using the personal api, returns list of accounts.
Using the personal api, this method creates a new account with the passphrase, and returns new account address.
Using the personal api, this method sends a transaction and signs it in one call, and returns a transaction id hash.
Using the personal api, this method calculates an Ethereum specific signature, and returns that signature.
Using the personal api, this method signs a transaction, and returns the signed transaction.
Using the personal api, this method unlocks account using the passphrase provided, and returns a boolean.
Returns transaction receipt for specified transaction hash(id)
Uninstalls filter from the ethereum node
Link to this section Types
Specs
earliest() :: String.t()
Specs
hex_block_number() :: String.t()
Specs
invalid_hex_string_error() :: ExW3.Utils.invalid_hex_string_error()
Specs
latest() :: String.t()
Specs
Specs
opts() :: {:url, String.t()}
Specs
pending() :: String.t()
Specs
request_error() :: Ethereumex.Client.Behaviour.error()
Link to this section Functions
Specs
returns all available accounts
Specs
Returns current balance of account
Specs
Returns block data for specified block number
Specs
block_number([opts()]) :: {:ok, non_neg_integer()} | {:error, ExW3.Utils.invalid_hex_string()}
Returns the current block number
Specs
Simple eth_call to client. Recommended to use ExW3.Contract.call instead.
Specs
Simple eth_send_transaction. Recommended to use ExW3.Contract.send instead.
Specs
Calculates an Ethereum specific signature and signs the data provided, using the accounts private key
Specs
Gets event changes (logs) by filter. Unlike ExW3.Contract.get_filter_changes it does not return the data in a formatted way
Specs
get_logs(log_filter(), [opts()]) :: {:ok, list()} | {:error, term()} | request_error()
Specs
Mines number of blocks specified. Default is 1
Specs
Creates a new filter, returns filter id. For more sophisticated use, prefer ExW3.Contract.filter.
Specs
Using the personal api, this method returns the address associated with the private key that was used to calculate the signature with personal_sign.
Specs
Using the personal api, returns list of accounts.
Specs
Using the personal api, this method creates a new account with the passphrase, and returns new account address.
Specs
Using the personal api, this method sends a transaction and signs it in one call, and returns a transaction id hash.
Specs
Using the personal api, this method calculates an Ethereum specific signature, and returns that signature.
Specs
Using the personal api, this method signs a transaction, and returns the signed transaction.
Specs
Using the personal api, this method unlocks account using the passphrase provided, and returns a boolean.
Specs
Returns transaction receipt for specified transaction hash(id)
Specs
Uninstalls filter from the ethereum node