NAME

Blockchain::Contract::Solidity::ABI::Decoder - Contract ABI response decoder

SYNOPSIS

Allows you to decode contract ABI response

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

METHODS

append

Appends type signature to the decoder.

Usage:

append(signature) -> L<Blockchain::Contract::Solidity::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 at cpan.org>

BUGS

Please report any bugs or feature requests to https://github.com/refeco/perl-ABI

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Blockchain::Contract::Solidity::ABI::Encoder

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by REFECO.

This is free software, licensed under:

The MIT License