Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ehmdjii on September 25, 2011, 08:11:55 AM



Title: Programming API for BTC accounts?
Post by: ehmdjii on September 25, 2011, 08:11:55 AM
hello,
i would like to set up a website where people can send and receive BTC from a provided address, which is something like their account.

are there any apis for that in a server-side language like PHP, ASP, JSP, etc?

thanks.


Title: Re: Programming API for BTC accounts?
Post by: kokjo on September 25, 2011, 08:37:11 AM
run bitcoind :)

and use this api:
https://en.bitcoin.it/wiki/Api
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
Happy Hacking!


Title: Re: Programming API for BTC accounts?
Post by: ehmdjii on September 25, 2011, 10:15:03 AM
thanks! how do i define the port and the host where bitcoind listens?


Title: Re: Programming API for BTC accounts?
Post by: kokjo on September 25, 2011, 10:23:23 AM
./bitcoind --help


Title: Re: Programming API for BTC accounts?
Post by: ehmdjii on September 25, 2011, 11:04:37 AM
thank you!
so on linux  i started
./bitcoind -server -daemon

and it is using 100% cpu. why? is it downloading the blockchain?



Title: Re: Programming API for BTC accounts?
Post by: kokjo on September 25, 2011, 11:30:41 AM
thank you!
so on linux  i started
./bitcoind -server -daemon

and it is using 100% cpu. why? is it downloading the blockchain?


yes downloading and verifying it.
its not hard to download it, but it takes alot of signature validation, and therefor alot of cpu to verify it.