Bitcoin Forum
June 16, 2024, 09:09:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: finding Bitcoin address in a MYSQL text column on: March 11, 2015, 03:26:39 PM
Thanks that worked great  Wink

<?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";
}
?>
2  Bitcoin / Development & Technical Discussion / finding Bitcoin address in a MYSQL text column on: March 11, 2015, 12:50:47 AM
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 $test1 = "my bit coin address is 1Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx can you help me";

so how do I extract thee address form this field? - Thanks   
3  Economy / Service Discussion / How do I extract the JSON balance data from this chain.com API call on: November 05, 2014, 02:51:09 PM
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.
4  Bitcoin / Legal / Re: The legality of a company registered in the blockchain and ownership of IP on: July 28, 2014, 01:24:10 PM
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   
5  Bitcoin / Development & Technical Discussion / Re: version 90200 problems with generation of Multi-Sig on: July 19, 2014, 04:56:22 PM
Thank you - it is set for the test net - WoW I freaked out.
6  Bitcoin / Development & Technical Discussion / version 90200 problems with generation of Multi-Sig on: July 19, 2014, 02:24:36 PM
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"
}
7  Bitcoin / Project Development / Re: PHP library: Bitcoin ECC, transaction, deterministic addresses on: June 08, 2014, 04:43:44 PM
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
8  Other / Off-topic / Re: Satoshi Nakamoto breaks silence in landmark interview on: January 10, 2014, 12:24:29 AM
So this is the real deal right - come on = a guy with a bad asian accent and thats Satoshi - right
9  Economy / Service Discussion / Re: WTF is HYPAY ? on: January 10, 2014, 12:05:53 AM
so let me introduce gATO Coin pay me and I'll give you some - col beans
10  Bitcoin / Development & Technical Discussion / Re: Deterministic wallets on: December 20, 2013, 11:17:12 PM
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. 
11  Other / Beginners & Help / Re: Has anyone set-up coipunk? on: October 31, 2013, 06:11:03 PM

Good source of help - https://github.com/kyledrake/coinpunk/blob/oldschool/docs/install-ubuntu.md

when I start it on node start.js -p 10000 - I cannot generate a new user - Invalid auth - error
12  Other / Beginners & Help / Re: Has anyone set-up coipunk? on: October 28, 2013, 09:38:13 PM
On Amazon -
sudo apt-get install apache2
test web page - http://YOURADDRESS.COM
download - Bitcoind
run bitcoind & - the & sign put's it into background mode
sudo apt-get install git
git clone https://github.com/kyledrake/coinpunk.git
cd 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:8832

Works for me ;-}


13  Economy / Service Announcements / Re: [ANN] Free Bitcoin Vanity Address Generation Website. on: October 21, 2013, 10:35:43 PM

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)   
14  Other / Beginners & Help / Re: Bitcoin is about to explode. on: October 21, 2013, 11:58:43 AM

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.
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!