NAME
Blockchain::Ethereum::Transaction::Legacy - Ethereum Legacy transaction abstraction
SYNOPSIS
Transaction abstraction for Legacy transactions
my $transaction = Blockchain::Ethereum::Transaction::Legacy->new(
nonce => '0x9',
gas_price => '0x4A817C800',
gas_limit => '0x5208',
to => '0x3535353535353535353535353535353535353535',
value => '0xDE0B6B3A7640000',
chain_id => '0x1'
# github.com/refeco/perl-ethereum-keystore
my $key = Blockchain::Ethereum::Keystore::Key->new(
private_key => pack "H*",
'4646464646464646464646464646464646464646464646464646464646464646'
);
$key->sign_transaction($transaction);
my $raw_transaction = $transaction->serialize;
serialize
Encodes the given transaction parameters to RLP
Usage:
serialize -> RLP encoded transaction bytes
Returns the RLP encoded transaction bytes
generate_v
Generate the transaction v field using the given y-parity
Usage:
generate_v($y_parity) -> hexadecimal v
$y_parity
y-parity
Returns the v hexadecimal value also sets the v fields from transaction
AUTHOR
Reginaldo Costa, <refeco at cpan.org>
BUGS
Please report any bugs or feature requests to https://github.com/refeco/perl-ethereum-transaction
LICENSE AND COPYRIGHT
This software is Copyright (c) 2023 by REFECO.
This is free software, licensed under:
The MIT License