定制 tokenly/counterparty-sender 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tokenly/counterparty-sender

Composer 安装命令:

composer require tokenly/counterparty-sender

包简介

A library

README 文档

README

The CounterpartySender component for Tokenly.

Example of usage:

$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";

统计信息

  • 总下载量: 1.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-20