The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

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

VERSION

version 0.018

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