he required Perl module.
use File::Basename;
# Load the required package module.
use CryptoTron::JsonHttp;
# Get the package name.
our ($MODULE_NAME, undef, undef) = fileparse(__FILE__, '\..*');
#
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
. A request of the service API results in
a response in JSON format. The module returns formatted string JSON data as
well as unformated raw JSON data based on the output format flag. The parsing
of t
package CryptoTron::JsonHttp;
# Load the Perl pragmas.
use 5.008008;
use strict;
use warnings;
# Load the Perl pragma Exporter.
use vars qw(@ISA @EXPORT @EXPORT_OK);
use Exporter 'import';
# Base c
ta
json_data
format_output
payload_standard
%SERVICES
$API_URL
);
# Set the package version.
our $VERSION = '0.14';
# Load the required Perl modules or packages.
use JSON::PP;
u
# Configure a new JSON:PP object.
our $indent_enable = "true";
our $indent_spaces = 4;
our $JSON;
$JSON = 'JSON::PP'->new->pretty;
$JSON = $JSON->indent($indent_enable);
$JSON = $JSON->indent_length($
he required Perl module.
use File::Basename;
# Load the required package module.
use CryptoTron::JsonHttp;
# Get the package name.
our ($MODULE_NAME, undef, undef) = fileparse(__FILE__, '\..*');
#
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
. A request of the service API results in a response in
JSON format. The module returns formatted string JSON data as well as
unformated raw JSON data based on the output format flag. The parsing of t
he required Perl module.
use File::Basename;
# Load the required package module.
use CryptoTron::JsonHttp;
# Get the package name.
our ($MODULE_NAME, undef, undef) = fileparse(__FILE__, '\..*');
#
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
. A request of the service API
results in a response in JSON format. The module returns formatted string JSON
data as well as unformated raw JSON data based on the output format flag. The
parsing of t
the package version.
our $VERSION = '0.03';
# Load the required package module.
use CryptoTron::JsonHttp;
# Load the required Perl module.
use File::Basename;
# Get the package name.
our ($MODULE_
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
;
# Set the output format flag.
my $OutputFlag = ["RAW"|"STR"];
# Get the account info as JSON string.
my $account_info = WithdrawBalance({
address => $PublicKeyBase58
[,flag
he required Perl module.
use File::Basename;
# Load the required package module.
use CryptoTron::JsonHttp;
# Get the package name.
our ($MODULE_NAME, undef, undef) = fileparse(__FILE__, '\..*');
#
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
. A request of the service API results in
a response in JSON format. The module returns formatted string JSON data as
well as unformated raw JSON data based on the output format flag. The parsing
of t
the required Perl modules or packages.
use URI;
use LWP::UserAgent;
use JSON::PP;
# Set the variable $JSON.
our $JSON = 'JSON::PP'->new->pretty;
# Define the global variables.
our($HEADER, $SERVICE
transaction';
# Set the request header.
$HEADER = [Accept => 'application/json',
Content_Type => 'application/json'];
# Assemble the service url.
$SERVICE_URL = $API_URL.$API_PATH;
# ---
#
# @argument $content Response content (scalar) #
# @returns $json_encode Encoded content (scalar) #
# --------------------------------
he required Perl module.
use File::Basename;
# Load the required package module.
use CryptoTron::JsonHttp;
# Get the package name.
our ($MODULE_NAME, undef, undef) = fileparse(__FILE__, '\..*');
#
en hash.
$param{'ModuleName'} = $MODULE_NAME;
# Get the ouput data.
my $output_data = json_data(\%param);
# Return the ouput data.
return $output_data;
};
1;
__END__
=head1 NAME
. A request of the service API
results in a response in JSON format. The module returns formatted string JSON
data as well as unformated raw JSON data based on the output format flag. The
parsing of t
he required Perl module.
use Try::Catch;
use JSON::PP;
use POSIX;
# Set the variable $SUN.
our $SUN = 1000000;
# Set the variable $JSON.
our $JSON = 'JSON::PP'->new->pretty;
# Set the array with th
#
# @argument $_[0] -> $dt_ms Raw JSON data (scalar) #
# @return $date_time Frozen balance (scalar)
e JSON account data and determine the relevant balance values. #
# #
# @argument $_[0] -> $json_data Raw JSON