Creates a new contract instance
Parameters: contract_address ( Optional - only if the contract already exists ), contract_abi ( Required - https://solidity.readthedocs.io/en/develop/abi-spec.html ), from ( Optional - Address ) gas ( Optional - Integer gas ) gas_price ( Optional - Integer gasPrice )
Return: New contract instance
Ethereum::RPC::Client - Ethereum JSON-RPC Client
use Ethereum::RPC::Client;
# Create Ethereum::RPC::Client object
my $eth = Ethereum::RPC::Client->new(
host => "127.0.0.1",
);
my $web3_clientVersion = $eth->web3_clientVersion;
# https://github.com/ethereum/wiki/wiki/JSON-RPC
This module implements in PERL the JSON-RPC of Ethereum https://github.com/ethereum/wiki/wiki/JSON-RPC
Binary.com [email protected]
Copyright 2017- Binary.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.