Ethereum::Contract - Support for interacting with Ethereum contracts using the geth RPC interface
Constructor: Here we get all functions and events from the given ABI and set it to the contract class.
Prepare a function to be called/sent to a contract.
Returns a Ethereum::Contract::ContractTransaction object.
The function ID is derived from the function signature using: SHA3(approve(address,uint256)).
Returns a string hash
Join the data and parameters and return a prepared transaction to be called as send, call or deploy.
Future object on_done: Ethereum::Contract::ContractTransaction on_fail: error string
Encode function arguments to the ABI format
function_name
params
Returns an encoded data string
Get the abi function total offset
For the cases we have arrays as parameters we can have a dynamic size for the static values, for sample if the basic type has a fixed value and also the array is fixed, we will have all the items on the array being added with the static items before the dynamic items in the encoded data
input_list
return the integer offset
Convert parameter list to the ABI format: https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector-and-argument-encoding
current_offset_count
input_type
param
Returns 2 arrays
Static => contains the static values from the conversion Dynamic => contains the dynamic values from the conversion
Read the specified log from the specified block to the latest block
Returns a json encoded object: https://github.com/ethereum/wiki/wiki/JSON-RPC#returns-42
Prepare a deploy transaction.
Ensure that the given hexadecimal string starts with 0x.
Returns a string hexadecimal
BUILDALL, BUILDARGS, DEMOLISHALL, does, meta
To install Ethereum::RPC::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ethereum::RPC::Client
CPAN shell
perl -MCPAN -e shell install Ethereum::RPC::Client
For more information on module installation, please visit the detailed CPAN module installation guide.