exw3 v0.4.2 ExW3 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
converts Ethereum style bytes to string
Decodes data based on given type signature
Decodes event based on given data and provided signature
Decodes output based on specified functions return signature
Encodes data into Ethereum hex string based on types signature
Encodes event based on signature
Encodes input from a method call based on function signature
Encodes data and appends it to the encoded method id
Encodes options into Ethereum JSON RPC hex string
Encodes list of options and returns them as a map
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
Converts an Ethereum address into a form that can be used by the ABI encoder
Converts the value to whatever unit key is provided. See unit map for details
Gets event changes (logs) by filter. Unlike ExW3.Contract.get_filter_changes it does not return the data in a formatted way
Returns the map used for ether unit conversion
checks if the address is a valid checksummed address
Returns a 0x prepended 32 byte hash of the input string
Loads the abi at the file path and reformats it to a map
Loads the bin ar the file path
Returns the 4 character method id based on the hash of the method signature
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
Reformats abi from list to map with event and function names as keys
Converts bytes to Ethereum address
returns a checksummed address
Converts ethereum hex string to decimal number
Converts the value to whatever unit key is provided. See unit map for details
Returns transaction receipt for specified transaction hash(id)
Returns the type signature of a given function
Uninstalls filter from the ethereum node
Link to this section Functions
returns all available accounts
Returns current balance of account
Returns block data for specified block number
Returns the current block number
converts Ethereum style bytes to string
Decodes data based on given type signature
Decodes event based on given data and provided signature
Decodes output based on specified functions return signature
Encodes data into Ethereum hex string based on types signature
Encodes event based on signature
Encodes input from a method call based on function signature
Encodes data and appends it to the encoded method id
Encodes options into Ethereum JSON RPC hex string
Encodes list of options and returns them as a map
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
Converts an Ethereum address into a form that can be used by the ABI encoder
Converts the value to whatever unit key is provided. See unit map for details.
Gets event changes (logs) by filter. Unlike ExW3.Contract.get_filter_changes it does not return the data in a formatted way
Returns the map used for ether unit conversion
checks if the address is a valid checksummed address
Returns a 0x prepended 32 byte hash of the input string
Loads the abi at the file path and reformats it to a map
Loads the bin ar the file path
Returns the 4 character method id based on the hash of the method signature
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.
personal_list_accounts([]) :: {:ok, []}
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.
personal_sign_transaction(%{}, binary(), []) :: {:ok, %{}}
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.
Reformats abi from list to map with event and function names as keys
Converts bytes to Ethereum address
returns a checksummed address
Converts ethereum hex string to decimal number
Converts the value to whatever unit key is provided. See unit map for details.
Returns transaction receipt for specified transaction hash(id)
Returns the type signature of a given function
Uninstalls filter from the ethereum node