我發現這篇文章關於BitPay,但它不是很清楚我可以如何使用它。如何使用Bitpay與Java
https://help.bitpay.com/development/how-do-i-use-the-bitpay-java-client-library
我實現了這個代碼:
public void createInvoice() throws BitPayException
{
ECKey key = KeyUtils.createEcKey();
BitPay bitpay = new BitPay(key);
InvoiceBuyer buyer = new InvoiceBuyer();
buyer.setName("Satoshi");
buyer.setEmail("[email protected]");
Invoice invoice = new Invoice(100.0, "USD");
invoice.setBuyer(buyer);
invoice.setFullNotifications(true);
invoice.setNotificationEmail("[email protected]");
invoice.setPosData("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");
Invoice createInvoice = bitpay.createInvoice(invoice);
}
我應該如何實現私鑰?
看看這個[鏈接](https://support.bitpay.com/hc/en-us/articles/204546905-Creating-Private-Keys-and-Public-Keys) –
是的,我已經測試過,但我無法制作工作代碼。你能告訴我工作的例子嗎? –
你能提供堆棧跟蹤嗎? – Rishi