Author image Jean-Pierre Rupp
and 1 contributors


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


  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;


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.


Jean-Pierre Rupp <>


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.