NAME
Blockchain::Ethereum::Transaction::EIP2930 - Ethereum Access List transaction abstraction (EIP-2930)
VERSION
version 0.020
SYNOPSIS
Transaction abstraction for EIP-2930 Access List transactions
my $transaction = Blockchain::Ethereum::Transaction::EIP2930->new(
    nonce       => '0x0',
    gas_price   => '0x4A817C800',
    gas_limit   => '0x5208',
    to          => '0x3535353535353535353535353535353535353535',
    value       => parse_unit('1', ETH),
    data        => '0x',
    chain_id    => '0x1',
    access_list => [
        {
            address      => '0x1234567890123456789012345678901234567890',
            storage_keys => [
                '0x0000000000000000000000000000000000000000000000000000000000000001',
                '0x0000000000000000000000000000000000000000000000000000000000000002'
            ]
        }
    ]
);
my $key = Blockchain::Ethereum::Keystore::Key->new(
    private_key => pack "H*",
    '4646464646464646464646464646464646464646464646464646464646464646'
);
$key->sign_transaction($transaction);
my $raw_transaction = $transaction->serialize;
METHODS
serialize
Encodes the given transaction parameters to RLP
Returns the RLP encoded transaction bytes
AUTHOR
REFECO <refeco@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2022 by REFECO.
This is free software, licensed under:
The MIT (X11) License