Finance::Bitcoin::Address - a bitcoin address
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";
}
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($minconf)"
- Returns the total amount received via this address, with at least
$minconf confirmations.
$minconf defaults to 1.
- "api"
- Retrieve a reference to the Finance::Bitcoin::API object being used.
Please report any bugs to <http://rt.cpan.org/>.
Finance::Bitcoin, Finance::Bitcoin::Wallet.
<http://www.bitcoin.org/>.
Toby Inkster <tobyink@cpan.org>.
Copyright 2010, 2011, 2013, 2014 Toby Inkster
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.