如何在php中集成coinbase api以传输比特币

时间:2017-05-05 08:13:37

标签: php bitcoin coinbase-api

我想通过PHP中的比特币地址转移比特币请分享正确的链接。

https://developers.coinbase.com/docs/merchants/payment-buttons

2 个答案:

答案 0 :(得分:1)

尝试使用此代码进行传输btc

$transaction = Transaction::send();
$transaction->setToBitcoinAddress('here btc address to transfer');
$transaction->setAmount(new Money(0.0010, CurrencyCode::BTC));
$transaction->setDescription('this is optional');

希望它能奏效:

https://github.com/coinbase/coinbase-php

答案 1 :(得分:0)

这里是php的代码 请看看

Continuous Dynamic