NAME

CryptoTron::GetAccount - Perl extension for use with the blockchain of the crypto coin Tron.

SYNOPSIS

use CryptoTron::ParseAccount;

# Declare the variable $balance.
my $balance;

# Set the JSON data.
my $json_data = '{"balance": 1000000000, "frozen": [{"frozen_balance": 2000000000}],
                  "account_resource": {"frozen_balance_for_energy": {"frozen_balance": 300000000}}}';

# Get the total balance..
$balance = TotalBalance($json_data);
print $balance;

# Get the free balance..
$balance = FreeBalance($json_data);
print $balance;

# Get the free balance..
$balance = FrozenBalance($json_data);
print $balance;

DESCRIPTION

The module consists of methods for parsing raw JSON data. The raw JSON can come from module CryptoTron::GetAccount or other sources.

SEE ALSO

JSON::PP;

AUTHOR

Dr. Peter Netz, <ztenretep@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2022 by Dr. Peter Netz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.30.0 or, at your option, any later version of Perl 5 you may have available.