ess} = Finance::Dogechain::Address->new( address => $item->{address} );
}
}
}
sub TO_JSON($self) {
return '[Finance::Dogechain::Transaction](tx_id => ' . $self->tx_id . ')';
}
'to th
able by instance methods C<tx_id()>, C<ua()>, and C<base_url()>.
=head2 transaction()
Returns a JSON data structure representing the transaction corresponding to the
C<tx_id>, if that transaction is
ing transaction outputs.
=head2 TO_JSON()
Returns a string representation of this object (its class and C<tx_id>) so that
you can serialize this object with L<JSON>.
=head1 COPYRIGHT & LICENSE
Cop
ght
# so return no transactions
return $self->block ? $self->block->{txs} : [];
}
sub TO_JSON($self) {
return '[Finance::Dogechain::Block](block_id => ' . $self->block_id . ')';
}
'to th
ailable by instance methods C<block_id()>, C<ua()>, and C<base_url()>.
=head2 block()
Returns a JSON data structure representing the block corresponding to the
C<block_id>, if that block is valid an
coinbase, for example.
=head2 TO_JSON()
Returns a string representation of this object (its class and C<block_id>) so that
you can serialize this object with L<JSON>.
=head1 COPYRIGHT & LICENSE
Co
->return_field_if_success( '/unspent/' . $self->address, 'unspent_outputs' )->@*
];
}
sub TO_JSON($self) {
return '[Finance::Dogechain::Address](address => ' . $self->address . ')';
}
'to th
n unsuccessful payload.
=head2 TO_JSON()
Returns a string representation of this object (its class and C<address>) so that
you can serialize this object with L<JSON>.
=head1 COPYRIGHT & LICENSE
Co
se_url . $url_path )->result;
if ($res->is_success) {
my $json = $res->json;
return $json->{$field} if $json->{success};
return 0;
}
return;
}
'to the moon';
__E
nstructor,
calls the API. If the result is successful, extracts and returns the JSON data
structure in the returned JSON payload at the top-level field provided in
C<$field>.
Returns an undefined val