Jean-Pierre Rupp > Test-Bitcoin-Daemon-0.02 > Test::Bitcoin::Daemon

Download:
Test-Bitcoin-Daemon-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Test::Bitcoin::Daemon - Test RPC commands against a temporary instance of bitcoind

SYNOPSIS ^

  use Test::Bitcoin::Daemon;
  my $bitcoind = new Test::Bitcoin::Daemon;
  my $rpc_url = $bitcoind->url;
  my $rpc_user = $bitcoind->username;
  my $rpc_pass = $bitcoind->pass;
  ...

DESCRIPTION ^

A Test::Bitcoin::Daemon object will create a bitcoind testnet instance to use for testing. Once the object gets destroyed, the instance will be stopped and the temporary directories it used will be removed.

If caller crashes without allowing this module to clean up after itself, temporary files will be left behind. If your system doesn't purge these files automatically, look in your temp directory for a subdirectory containing a testnet3 entry and remove it. In Linux the temp directory is usually in /tmp.

AUTHOR ^

Jean-Pierre Rupp <root@xeno-genesis.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2013 by Jean-Pierre Rupp

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: