Build Status codecov

NAME

perl-Ethereum-RPC

SYNOPSIS

use strict;
use warnings;
use Ethereum::RPC::Client;

my $abi = ...;
my $bytecode = ...;
my $rpc_client = Ethereum::RPC::Client->new;

my $coinbase = $rpc_client->eth_coinbase;

my $contract = $rpc_client->contract({
    contract_abi    => $abi,
    from            => $from,
    gas             => $gas,
});

my $message = $contract->deploy($bytecode)->get_contract_address(35);
die $message->failure if $message->is_failed;

$message = $contract->invoke("functionname", qw{param1 param2 param3})->call_transaction();
print $message->get->to_big_int() unless $error;

$message = $contract->invoke("functionname", $param1, $param2, $param3)->send_transaction();

DESCRIPTION

perl-Ethereum-Contract is a library to enable perl to call the contract functions using RPC calls.

USAGE

CAVEATS

This software is in an early state.

REQUIREMENTS

AUTHOR

Binary.com

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.