The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Blockchain::Ethereum::ABI::Decoder - ABI utility for decoding ethereum contract arguments

VERSION

version 0.015

SYNOPSIS

Allows you to decode contract ABI response

my $decoder = Blockchain::Ethereum::ABI::Decoder->new();
$decoder
    ->append('uint256')
    ->append('bytes[]')
    ->decode('0x...');

METHODS

append

Appends type signature to the decoder.

Usage:

append(signature) -> L<Blockchain::Ethereum::ABI::Encoder>
  • $param type signature e.g. uint256

Returns $self

decode

Decodes appended signatures

Usage:

decode() -> []

Returns an array reference containing all decoded values

AUTHOR

Reginaldo Costa <refeco@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by REFECO.

This is free software, licensed under:

The MIT (X11) License