Show Posts
|
Pages: [1]
|
Thanks that worked great <?php $test1 = "1DhSiBeYD4JNZvim4EefnEoFV2WMFc7e5d"; $test2 = "xxx 1DhSiBeYD4JNZvim4EefnEoFV2WMFc7e5dabcd xxxx"; if (preg_match("/[13][a-km-zA-HJ-NP-Z0-9]{26,33}/", $test2, $matches)) { echo "<br><br>Bitcoin Address found Match was found <br><br>"; echo $matches[0]; }else { echo "No Btcoin address found"; } ?>
|
|
|
I have a string of data in my mysql database column - I am using PHP - I want to search my db in a column and see if there are any Bitcoin addresses in the field. - $test1 "1Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; preg_match("/^[13][a-km-zA-HJ-NP-Z0-9]{25,34}$/", $test2, $matches) This works if the address is at the beginning - how about if it somewhere else in the field? ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) $test1 = "my bit coin address is 1Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx can you help me"; so how do I extract thee address form this field? - Thanks
|
|
|
I'm new to PHP and I need help. I have a test wallet - and I want to extract the balance data from this API call from chain.com
{"hash":"16sxw3dFK4aq8WH8gzWDW8XjyutJojsKJG","balance":346929,"received":346929,"sent":0,"unconfirmed_received":0,"unconfirmed_sent":0,"unconfirmed_balance":0}
With PHP is there an easy way to parse this out? I tried the object class route but failed-
object(stdClass)#1 (7) { ["hash"]=> string(34) "16sxw3dFK4aq8WH8gzWDW8XjyutJojsKJG" ["balance"]=> int(346929) ["received"]=> int(346929) ["sent"]=> int(0) ["unconfirmed_received"]=> int(0) ["unconfirmed_sent"]=> int(0) ["unconfirmed_balance"]=> int(0) }
Any help would be welcomed.
|
|
|
This is just the tip of the iceberg, the blockchain offers 2 things data transparency and secure communication, this opens up the system to all kinds of tools were no trusted middleman is needed to execute contracts and such. Colorcoin, Mastercoin and Counterparty. use a protocol on top of Bitcoin like http on tic/ip giving us new tools to create any legal or financial tool and contracts and change things like business transparency. Business and regulators needs these tools to help Bitcoin become more accepted in the regulatory world and then the legality issues will go away. I use to think the coin was important but the public blockchain and the p2p network will change the world with new and exciting business tools add BIP32 and multi-sig -n out of-15 - then we really have programmable money and programmable execution of cyber code in the blockchain. that's cool beans
|
|
|
Thank you - it is set for the test net - WoW I freaked out.
|
|
|
I am running some test and on version 90200 when creating a new MS address it gives me a 2x address- when I run it on an older version : 89900 it create a 3x address. - I don't know if this is user error, but something is just not right if it creates a 2x address - the redeemScript is the same so that's OK.
If anyone can help or explain this - thanks
bitcoind createmultisig 2 '["029c7661c3986f58a2d805bf9d6155c08f66d4ef228d12b7d48a187225e0eafe87", "02a6674225077d4c81e7e25199818b953684b5a2e06cca919e37ff6fd74512d2ea", "031d1be1d201f895f3d6e0558345919670a1ba166858360147decd5d920f5d6fcb"]' { "address" : "2N7Y4ZHU3a4YSd7PWNsU28BN88D4wz9N6yT", "redeemScript" : "5221029c7661c3986f58a2d805bf9d6155c08f66d4ef228d12b7d48a187225e0eafe872102a6674 225077d4c81e7e25199818b953684b5a2e06cca919e37ff6fd74512d2ea21031d1be1d201f895f3 d6e0558345919670a1ba166858360147decd5d920f5d6fcb53ae" } bitcoind getinfo { "version" : 90200, "protocolversion" : 70002, "blocks" : 269899, "timeoffset" : 0, "connections" : 28, "proxy" : "", "difficulty" : 91028.39557458, "testnet" : true, "paytxfee" : 0.00000000, "relayfee" : 0.00001000, "errors" : "" } 覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧 bitcoind createmultisig 2 '["029c7661c3986f58a2d805bf9d6155c08f66d4ef228d12b7d48a187225e0eafe87", "02a6674225077d4c81e7e25199818b953684b5a2e06cca919e37ff6fd74512d2ea", "031d1be1d201f895f3d6e0558345919670a1ba166858360147decd5d920f5d6fcb"]' { "address" : "3FyrVYY1xc36RKkxhjr9WENrurrn8t8PFE", "redeemScript" : "5221029c7661c3986f58a2d805bf9d6155c08f66d4ef228d12b7d48a187225e0eafe872102a6674 225077d4c81e7e25199818b953684b5a2e06cca919e37ff6fd74512d2ea21031d1be1d201f895f3 d6e0558345919670a1ba166858360147decd5d920f5d6fcb53ae" }
bitcoind getinfo { version : 89900, "protocolversion" : 70001, "walletversion" : 60000, "balance" : 0.01890000, "blocks" : 311512, "timeoffset" : -1, "connections" : 10, "proxy" : "", "difficulty" : 17336316978.50783157, "testnet" : false, "keypoololdest" : 1395237817, "keypoolsize" : 101, "paytxfee" : 0.00000000, "errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" }
|
|
|
I'm going to give your tools a test drive, it looks cool and can save me a lot of time. If your looking for some work, I may need your skills pls let me know. gAtO
|
|
|
So this is the real deal right - come on = a guy with a bad asian accent and thats Satoshi - right
|
|
|
so let me introduce gATO Coin pay me and I'll give you some - col beans
|
|
|
noob question is how can I apply the HD wallet to a web environment with multiple users. Once the wallets are created I can store everything in a MYSQL or something. Wouldn't I be able to query the blockchain and update the web wallets. I think we can give the world a safe BIP0032 HDwallet that can be used online and on devices at the same time as a paper backup. Any help would be welcome.
|
|
|
On Amazon - sudo apt-get install apache2 test web page - http://YOURADDRESS.COMdownload - Bitcoind run bitcoind & - the & sign put's it into background mode sudo apt-get install git git clone https://github.com/kyledrake/coinpunk.gitcd coinpunk sudo apt-get install npm npm install cp config.template.json config.json change - config.json I set it up for the test network 8832 open the port thru your firewall for 8832 - apply rule node start.js -p 8832 point your browser - http://YOURADDRESS.COM:8832Works for me ;-}
|
|
|
Nibor, can you address these accusations? Any updates on this? The Vanitygen code is here: - https://github.com/samr7/vanitygen - this looks pretty easy to do so why go to an outside and pay .20 BTC - at the going price of BTC that's a pretty penny-(BTC)
|
|
|
I think this price will come faster than expected. The rich boys are standing up and taking notice and the number of request I have had about BTC keeps coming, from older white guys in the financial sector - So I expect that 1,000,000 will be here faster than we all think.
|
|
|
|