NAME
CryptoTron::GetAccount - Perl extension for use with the blockchain of the crypto coin Tron.
SYNOPSIS
use CryptoTron::GetAccount;
# Set the public key as Base58 address.
my $PublicKeyBase58 = "TY2fJ7AcsnQhfW3UJ1cjEUak5vkM87KC6R";
# Set the output format flag.
my $OutputFlag = ["RAW"|"STR"|""];
# Set the visible switch.
my $VisibleSwitch = ["True"|"False"|""];
# Get the account info from the blockchain.
my $account_info = GetAccount({
PublicAddr => $PublicKeyBase58
[, OutputFlag => $OutputFlag]
[, VisibleSwitch => $VisibleSwitch]
});
# Print the account info into the terminal window.
print $account_info;
DESCRIPTION
The module requests the account information of an account from the Tron blockchain using the so-called FULL-NODE HTTP API from the Tron network. For HTTP requests the methods POST
or GET
used in general. For the method GetAccount
the used method is POST
. The switch visible can be set to True or False. If the switch is set to True a Base58 address is used. If the switch is set to False a Hex address is used. A request results in a response in JSON format. The module returns formated string JSON data as well as unformated raw JSON data.
MODULE METHOD
GetAccount()
SEE ALSO
CryptoTron::JsonHttp
CryptoTron:AddressConvert
CryptoTron:AddressCheck
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.