NAME

Blockchain::Ethereum::Transaction - Ethereum transaction abstraction

SYNOPSIS

In most cases you don't want to use this directly, use instead:

serialize

To be implemented by the child classes, 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

hash

SHA3 Hash the serialized transaction object

Usage:

hash() -> SHA3 transaction hash

Returns the SHA3 transaction hash bytes

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