The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Finance::Bitcoin::Address - a bitcoin address

SYNOPSIS

 use Finance::Bitcoin;
 
 my $uri     = 'http://user:password@127.0.0.1:8332/';
 my $wallet  = Finance::Bitcoin::Wallet->new($uri);
 
 foreach my $address ($wallet->addresses)
 {
   print $address->address . "\n";
   print $address->label . "\n";
   print $address->received . "\n\n";
 }

DESCRIPTION

This module is part of the high-level API for accessing a running Bitcoin instance.

new($endpoint, $string)

Constructor. $endpoint may be the JSON RPC endpoint URL, or may be a Finance::Bitcoin::API object; $string is an address string.

address

Returns the address string.

label

Get/set the address label.

received

Returns the total amount of received via this address.

BUGS

Please report any bugs to http://rt.cpan.org/.

SEE ALSO

Finance::Bitcoin, Finance::Bitcoin::Wallet.

http://www.bitcoin.org/.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT

Copyright 2010 Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 97:

You forgot a '=back' before '=head1'