Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: lvyuan95 on June 20, 2014, 12:36:27 AM



Title: How to access bitcoin wallet API via web host
Post by: lvyuan95 on June 20, 2014, 12:36:27 AM
Hi guys, I want to build a shop with dogecoin and darkcoin payment, I used oscommerce and the bitcoin module (https://github.com/weex/oscommerce-bitcoin). And I filled my own PC's IP on 'RPC host IP', and I'm pretty sure the conf file was set appropriated. But the thing is, the there is always something wrong on check out page, says 'failed to open stream: Connection refused in balabala'

Help please  :-\


Title: Re: How to access bitcoin wallet API via web host
Post by: gweedo on June 20, 2014, 12:43:56 AM
Sounds like a firewall issue.

But if you just building a shop, why not just have an table in your database, that holds the bitcoin address and only the address. Then you can use a service like mine https://apicoin.io to get the balance of that address, or be notified of when a transaction goes to that address. This is more secure than using a bitcoind, which is way too heavy for this type of action.

https://apicoin.io/api/v1/doc/#callbackscript
https://apicoin.io/api/v1/doc/#addcallbacks


Title: Re: How to access bitcoin wallet API via web host
Post by: lvyuan95 on June 20, 2014, 12:51:57 AM
Sounds like a firewall issue.

But if you just building a shop, why not just have an table in your database, that holds the bitcoin address and only the address. Then you can use a service like mine https://apicoin.io to get the balance of that address, or be notified of when a transaction goes to that address. This is more secure than using a bitcoind, which is way too heavy for this type of action.

https://apicoin.io/api/v1/doc/#callbackscript
https://apicoin.io/api/v1/doc/#addcallbacks


Thanks for your reply! In fact I'm using some altcoin wallets instead of bitcoin, so is there any way I can solve this?


Title: Re: How to access bitcoin wallet API via web host
Post by: gweedo on June 20, 2014, 12:55:28 AM
Sounds like a firewall issue.

But if you just building a shop, why not just have an table in your database, that holds the bitcoin address and only the address. Then you can use a service like mine https://apicoin.io to get the balance of that address, or be notified of when a transaction goes to that address. This is more secure than using a bitcoind, which is way too heavy for this type of action.

https://apicoin.io/api/v1/doc/#callbackscript
https://apicoin.io/api/v1/doc/#addcallbacks


Thanks for your reply! In fact I'm using some altcoin wallets instead of bitcoin, so is there any way I can solve this?

Open the RPC port which is 8333 for bitcoind.


Title: Re: How to access bitcoin wallet API via web host
Post by: lvyuan95 on June 20, 2014, 12:56:51 AM
Sounds like a firewall issue.

But if you just building a shop, why not just have an table in your database, that holds the bitcoin address and only the address. Then you can use a service like mine https://apicoin.io to get the balance of that address, or be notified of when a transaction goes to that address. This is more secure than using a bitcoind, which is way too heavy for this type of action.

https://apicoin.io/api/v1/doc/#callbackscript
https://apicoin.io/api/v1/doc/#addcallbacks


Thanks for your reply! In fact I'm using some altcoin wallets instead of bitcoin, so is there any way I can solve this?

Open the RPC port which is 8333 for bitcoind.

Will try, thanks!


Title: Re: How to access bitcoin wallet API via web host
Post by: gweedo on June 20, 2014, 01:09:50 AM
Sounds like a firewall issue.

But if you just building a shop, why not just have an table in your database, that holds the bitcoin address and only the address. Then you can use a service like mine https://apicoin.io to get the balance of that address, or be notified of when a transaction goes to that address. This is more secure than using a bitcoind, which is way too heavy for this type of action.

https://apicoin.io/api/v1/doc/#callbackscript
https://apicoin.io/api/v1/doc/#addcallbacks


Thanks for your reply! In fact I'm using some altcoin wallets instead of bitcoin, so is there any way I can solve this?

Open the RPC port which is 8333 for bitcoind.

Will try, thanks!

Also make sure you have this in your bitcoin.conf file...

rpcallowip=<server ip>