NAME
Business::Bitcoin::Request - Bitcoin payment request
VERSION
$Revision: 1.027 $
$Date: Sun Jan 22 07:57:50 PST 2017 $
SYNOPSIS
Business::Bitcoin::Request objects represent Bitcoin payment requests generated by Business::Bitcoin.
use Business::Bitcoin;
my $bizbtc = new Business::Bitcoin (DB => '/tmp/bizbtc.db',
XPUB => 'xpub...');
my $request = $bizbtc->request(Amount => 4200);
print ($request->verify ? "Verified\n" : "Verification failed\n");
METHODS
new
Not intended to be called directly. Business::Bitcoin::Request objects should be created by calling the request method on a Business::Bitcoin object.
verify
Verify that the request has been paid. Returns true if the request has been paid, false otherwise. The number of confirmations required to consider a payment valid can be set via the confirmations accessor.
ACCESSORS
Accessors can be called with no arguments to query the value of an object property, or with a single argument, to set the property to a specific value (unless the property is read only).
confirmations
The number of confirmations needed to consider a payment valid.
amount
The amount of the payment request, in Satoshi. Read only.
address
The Bitcoin receiving address for the payment request. Read only.
created
The timestamp of when the request was created. Read only.
reference
An optional reference ID for the request, to facilitate integration with existing order systems. Read only.
version
The version number of this module. Read only.
AUTHOR
Ashish Gulhati, <biz-btc at hash dot neomailbox.ch>
BUGS
Please report any bugs or feature requests to bug-business-bitcoin at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Business-Bitcoin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Business::Bitcoin::Request
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright (c) 2016-2017 Ashish Gulhati. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.