Title: Bitcoin PHP Tutorial Post by: BitcoinWatcher on July 08, 2018, 06:28:11 AM I'm looking for some up to date tutorials for using bitcoin for a payment system. I have only used electrum and dont have the space for a full node on my system for the full blockchain required to use bitcoind. I want to build a system that doesnt rely on blockchain.info and gives me complete over private keys. I'm trying to make something where each customer get their own address generated for each payment then my server can verify the transactions after so many confirmations. The bitcoin wiki is seriously out of date and isnt straight forward on how to use it without needing a full node. My final site will be on a Linux VPS and test server is on Linux laptop without enough memory for full blockchain. I've found the easybitcoin.php library and tried using it but of course doesnt work right because bitcoind cant download full blockchain and I'm not understanding how to use bitcoin.conf
I'd really love to find a tutorial that will teach me how to make this system without needing a full node starting all the way from how to set up bitcoin in PHP. Title: Re: Bitcoin PHP Tutorial Post by: MrCrank on July 08, 2018, 06:41:43 AM I'm looking for some up to date tutorials for using bitcoin for a payment system. I have only used electrum and dont have the space for a full node on my system for the full blockchain required to use bitcoind. I want to build a system that doesnt rely on blockchain.info and gives me complete over private keys. I'm trying to make something where each customer get their own address generated for each payment then my server can verify the transactions after so many confirmations. The bitcoin wiki is seriously out of date and isnt straight forward on how to use it without needing a full node. My final site will be on a Linux VPS and test server is on Linux laptop without enough memory for full blockchain. I've found the easybitcoin.php library and tried using it but of course doesnt work right because bitcoind cant download full blockchain and I'm not understanding how to use bitcoin.conf I'd really love to find a tutorial that will teach me how to make this system without needing a full node starting all the way from how to set up bitcoin in PHP. For bitcoind need use full node. You can try use prune mode (no need download all blockchain) Bitcoin wiki has all details info. set prune mode in bitcoin.conf. Title: Re: Bitcoin PHP Tutorial Post by: Vod on July 08, 2018, 07:02:30 AM I'm looking for some up to date tutorials for using bitcoin for a payment system. I have only used electrum and dont have the space for a full node on my system for the full blockchain required to use bitcoind. I want to build a system that doesnt rely on blockchain.info and gives me complete over private keys. I'm trying to make something where each customer get their own address generated for each payment then my server can verify the transactions after so many confirmations. The bitcoin wiki is seriously out of date and isnt straight forward on how to use it without needing a full node. My final site will be on a Linux VPS and test server is on Linux laptop without enough memory for full blockchain. I've found the easybitcoin.php library and tried using it but of course doesnt work right because bitcoind cant download full blockchain and I'm not understanding how to use bitcoin.conf I'd really love to find a tutorial that will teach me how to make this system without needing a full node starting all the way from how to set up bitcoin in PHP. For bitcoind need use full node. You can try use prune mode (no need download all blockchain) Bitcoin wiki has all details info. set prune mode in bitcoin.conf. OP specifically said he can't find the info in the wiki. Can you post links that can show him where he missed the info? Title: Re: Bitcoin PHP Tutorial Post by: MrCrank on July 08, 2018, 07:07:06 AM I'm looking for some up to date tutorials for using bitcoin for a payment system. I have only used electrum and dont have the space for a full node on my system for the full blockchain required to use bitcoind. I want to build a system that doesnt rely on blockchain.info and gives me complete over private keys. I'm trying to make something where each customer get their own address generated for each payment then my server can verify the transactions after so many confirmations. The bitcoin wiki is seriously out of date and isnt straight forward on how to use it without needing a full node. My final site will be on a Linux VPS and test server is on Linux laptop without enough memory for full blockchain. I've found the easybitcoin.php library and tried using it but of course doesnt work right because bitcoind cant download full blockchain and I'm not understanding how to use bitcoin.conf I'd really love to find a tutorial that will teach me how to make this system without needing a full node starting all the way from how to set up bitcoin in PHP. For bitcoind need use full node. You can try use prune mode (no need download all blockchain) Bitcoin wiki has all details info. set prune mode in bitcoin.conf. OP specifically said he can't find the info in the wiki. Can you post links that can show him where he missed the info? Yes of course, This is about bitcoin.conf https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File and useful info for API call https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list Title: Re: Bitcoin PHP Tutorial Post by: BitcoinWatcher on July 12, 2018, 05:26:24 PM It doesnt exactly go into detail and many of those functions like getinfo() are deprecated. Like running in pruning mode I run the normal bitcoind? I'll still be able to generate new addresses for each transaction? Will I be able to use it as "hot wallet" and then send it to my cold storage wallet after it gets enough confirmations? Will any code I write for pruning mode still work on a full node when I get a VPS with plenty of space?
Title: Re: Bitcoin PHP Tutorial Post by: BitcoinWatcher on July 12, 2018, 11:38:00 PM So I found this I'm trying to follow but I dont know how to format JSON as arguments as they are from the command line in Ubuntu
https://bitcoin.org/en/developer-examples#simple-spending I got a regtest chain but I cant connect to it, I get a server refused error but if I connect t the standard 8332 port thats supposed to be mainnet it can retrieve my wallet data: Code: <?php This tutorial I'm following is making it so hard to understand how the transactions work with the :JSON stuff so I figured I'd try to do it in PHP where I can use method calls instead of CLI so its easier to write JSON objects. Does anybody know of a tutorial thats easier to follow? This is my bitcoin.conf Code: ## |