Bitcoin Forum
June 21, 2024, 06:21:53 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Bitcoind RPC - create a new address for every payment? on: May 02, 2014, 07:44:23 PM
You can check the blockchain using bitcoind without having the private keys in the wallet. This blog post explains how.

Excellent, that's what I needed! Thank you so much! Smiley
2  Bitcoin / Development & Technical Discussion / Re: Bitcoind RPC - create a new address for every payment? on: May 02, 2014, 07:19:36 PM
Now you can use a bitcoin api like blockchain's to work out if a user has paid or not (and you can set how many confirmations)

Sorry, but I don't want to involve any third-party apps.

Let's say I have generated random private key (256-bit number) and then its public address. All that in PHP only. I will still need a method to check in blockchain if there is required amount of BTC. Importing it into bitcoind won't solve the problem. Is there any way I can search blockchain? Maybe there is some open-source program that allows to filter transactions by public address or private key without importing it at all?
3  Bitcoin / Development & Technical Discussion / Re: Bitcoind RPC - create a new address for every payment? on: May 02, 2014, 06:13:31 PM
Do you want payments to be detected as soon as they are sent (0-confirmations) or after they have been included in a block (1-confirmation)?

I want to make it customizable. However, I think at least 1 confirmation should be a requirement. But wait... is it even possible to detect a payment without any confirmations?
4  Bitcoin / Development & Technical Discussion / Re: Bitcoind RPC - create a new address for every payment? on: May 02, 2014, 05:24:29 PM
Is the idea that a developer would run a hot wallet and your PHP library on the server?

Exactly. My library is meant to be doing all the JSON-RPC-releated stuff to communicate with bitcoind to make receiving payments in various cryptocurrencies as simple as possible. Example code:

Code:
$client = new Client();
$payment = $client->createPayment();
$payment->setCurrency('BTC');
$payment->setAmount(0.01);
$payment->save();
print($payment->address);

Then, to check if user has paid:

Code:
$client = new Client();
$payment = $client->loadPayment($payment_id);
print($payment->status);

Maybe there is some way to modify wallet.dat file? I have found out that it's a Berkeley DB file. However, I'm afraid my script won't be able to edit it without root access. Additionally, modifying it while bitcoind is running may cause some troubles. And it HAS to be on all the time to update the blockchain...
5  Bitcoin / Development & Technical Discussion / Bitcoind RPC - create a new address for every payment? on: May 02, 2014, 04:14:55 PM
Hi!

I'm currently working on a PHP library that will help web developers receiving payments in BTC and other cryptocurrencies.

My question is - should it create a new address for every payment? As far as I know, bitcoind doesn't allow deleting addresses - can it cause troubles when numbers of addresses will go thousands? Or maybe there's a different way to do what I want to do?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!