2017 © Pedro Peláez
 

library counterparty-sender

A library

image

tokenly/counterparty-sender

A library

  • Wednesday, September 16, 2015
  • by dweller
  • Repository
  • 4 Watchers
  • 1 Stars
  • 1,605 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The CounterpartySender component for Tokenly., (*1)

Example of usage:, (*2)


$xcpd_connection_string = 'http://addressof.counterpartyserver.com:4000'; $xcpd_rpc_user = 'rpcusername'; $xcpd_rpc_password = 'securerpcpassword'; $bitcoind_connection_string = 'httpd://btcrpcusername:btcrpcpassword@addressof.bitcoinserver.com:8332'; $xcpd = new Tokenly\XCPDClient\Client($xcpd_connection_string, $xcpd_rpc_user, $xcpd_rpc_password); $bitcoind = new Nbobtc\Bitcoind\Bitcoind(new Nbobtc\Bitcoind\Client($bitcoind_connection_string)); $sender = new Tokenly\CounterpartySender\CounterpartySender($xcpd, $bitcoind); $public_key = 'PUBLICBITCOINADDRESSKEY'; $private_key = 'PRIVATEBITCOINADDRESSKEY'; $source = 'SOURCE_BITCOINADDRESS'; $destination = 'DESTINATION_BITCOINADDRESS'; $quantity = 1000; $asset = 'LTBCOIN'; $transaction_id = $sender->send($public_key, $private_key, $source, $destination, $quantity, $asset); echo "transaction id: $transaction_id\n";

The Versions

16/09 2015

dev-master

9999999-dev

A library

  Sources   Download

MIT

The Requires

 

The Development Requires