Bitcoin Forum
July 09, 2024, 04:42:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 ... 109 »
161  Bitcoin / Project Development / Re: How to add the blockchain Latest Transaction widget to my html site on: August 25, 2016, 04:21:40 AM
@coinableS I tried out your price chart on my https blog and it would not render, Firefox threw an error: btcwidget.com uses an invalid security certificate. The certificate is only valid for the following names: jupiter.cleverdot.com, www.jupiter.cleverdot.com Error code: SSL_ERROR_BAD_CERT_DOMAIN

Any way to fix? I do like your widgets but they will not display on my Wordpress blog.

Thanks for the heads up, I was not aware. Can you confirm, this only happens with the Price Chart widget?

Just tried the first option Bitcoin Price Ticker Widget no joy. Sorry about that. Had to put CoinGecko back up.

Well thanks for reporting the bug. I didn't think about SSL cross-site issues. I'll need to add SSL which I've been meaning to do on this domain anyways.
162  Bitcoin / Project Development / Re: How to add the blockchain Latest Transaction widget to my html site on: August 25, 2016, 03:51:01 AM
@coinableS I tried out your price chart on my https blog and it would not render, Firefox threw an error: btcwidget.com uses an invalid security certificate. The certificate is only valid for the following names: jupiter.cleverdot.com, www.jupiter.cleverdot.com Error code: SSL_ERROR_BAD_CERT_DOMAIN

Any way to fix? I do like your widgets but they will not display on my Wordpress blog.

Thanks for the heads up, I was not aware. Can you confirm, this only happens with the Price Chart widget?
163  Bitcoin / Project Development / Re: How to add the blockchain Latest Transaction widget to my html site on: August 25, 2016, 12:17:28 AM
If you google "Bitcoin transaction widget," you will get links like this which may be what you are looking for:

http://btcwidget.com

Thanks cr1776, that's my site.  Cool
OP, let me know if that is what you are looking for.

Also if you are looking at trying some raw and dirty code might I suggest building your own instead of using a widget. It's just a little javascript, anyone can do it  Wink
Here are two tutorials that should help. They're basically the same.

http://coinables.github.io/  Goto the stream lives transactions with WebSocket
http://btcthreads.com/display-real-time-bitcoin-transactions-with-jquery-and-websocket/
164  Economy / Services / Re: Looking for a professional Bitcoin api developer on: August 20, 2016, 05:07:35 PM
Hi Developers
I need a good professional developer for my already existing site, I want to change its plan, I need a developer who is available to start "immediately" and work only on my site as I need it operating as soon as possible.
Any dev,even if he has 10 years of experience would have to look at the code which is time consuming.He can't start coding "instantly " after the requirements are collected.

1. I need to see results everyday,
That is not how freelancers work.What's your budget anyhow ? You haven't posted any $$ budget which would attract developers.Why do you think they'll be interested in your half sensible thread?

2. I need instant results, when I ask for a colour change I want to see it change immediately, I don't want someone who will tell me about tomorrow.
3. Contact me via email cliffpilane@gmail.com
You're probably a terrible manager developer can have.You're hiring a developer and not a fuckin African Slave.
Working with you == Developer's Worst Night mare!

100% this ^^
You're already angry and demanding and nothing has started yet. You make it seem like the developer should feel privileged just to be able to work for you when the reality is developers have enough work as it is.  They will have no interest in work like this.  With a post like yours the only response you will receive will be a PM from a scammer in the Ukraine who will take your money and run.
165  Bitcoin / Development & Technical Discussion / Re: Are multisig addresses generated by same private key set secure? on: August 20, 2016, 05:00:40 PM
It's an interesting idea since the order the public keys are entered when creating the multisig will result in a different address and redeem script. For those who aren't sure what OP is talking about, creating a multisig with pubkey 1, 2, 3 will be a different address than pubkey 1, 3, 2 even though they are all the same keys.  I guess the big question is why do it this way? The private keys you use to sign from your spending wallet are the same from your cold storage, so you might as well keep you cold storage in the same address as your spending wallet. If someone somehow gets access to your spending wallet they will technically have access to your cold storage if they think to check the different order combinations.  I think it would just be easier to keep the cold storage with completely separate private keys, because the amount of effort required to do so is slim but the extra feeling of security is great.
166  Bitcoin / Project Development / Re: So You Want To Use Bitcoin On Your Website? on: August 20, 2016, 12:10:44 AM
Awesome, just ordered the book.

Thanks for everything Kyle.

Very cool! Once you get it please consider leaving a review on Amazon. Reviews really help the book rankings  Grin
167  Bitcoin / Bitcoin Technical Support / Re: How to optimize our Bitcoin integration? on: August 20, 2016, 12:08:51 AM
Although I haven't tried it in production this is how I was thinking of handling the gap issue.

1. generate new address
 - - check the current gap
2. If current gap is > 19 then
 - - call block.io to send a small payment to the newly generated address
3. discard that address
4. return to #1 (gap should now be zero).

You can check the current gap of addresses that haven't received a payment by calling https://blockchain.info/v2/receive/checkgap?xpub={xpub}&key={apikey}

You’ll get a JSON response like: { “gap”: 12 } if it reaches more than 20 you'll get an error.

So when generating a new address, I'd check the current gap for my xpub, and if it is larger than 19, then I will send a small payment myself to the newly generated address so the gap resets to zero, scrap the address, and generate another new address for the user to use.

The issue here is even though you are sending funds to yourself so you don't lose funds, it will still cost you transaction fees every time there's a 20 address gap. I'd use block.io to send the payment since just sending a payment from a single address will still be within their free api service.

Personally I think BIP32 does not work well with accepting payments online strictly because of the look-ahead issue. This happens with all wallets, it's not just a blockchain.info problem. I'd rather just use a fully functional wallet API, bitcoind or even generate key pairs on the fly and temporarily store them on the server for later once a payment is received to sweep the funds off your server.

What if somone is about to send a transaction to that last 19th address?


Wouldn't matter, it would still show on the wallet since the look-ahead is 20 consecutive addresses.
168  Economy / Service Discussion / Re: Validate Bitcoin address thru web api or php on: August 19, 2016, 04:46:27 AM
The script on rosettacode works. Also it provides examples to validate bitcoin addresses in 20 different languages.

https://rosettacode.org/wiki/Bitcoin/address_validation#PHP

Code:
function validate($address){
        $decoded = decodeBase58($address);
 
        $d1 = hash("sha256", substr($decoded,0,21), true);
        $d2 = hash("sha256", $d1, true);
 
        if(substr_compare($decoded, $d2, 21, 4)){
                throw new \Exception("bad digest");
        }
        return true;
}
function decodeBase58($input) {
        $alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
 
        $out = array_fill(0, 25, 0);
        for($i=0;$i<strlen($input);$i++){
                if(($p=strpos($alphabet, $input[$i]))===false){
                        throw new \Exception("invalid character found");
                }
                $c = $p;
                for ($j = 25; $j--; ) {
                        $c += (int)(58 * $out[$j]);
                        $out[$j] = (int)($c % 256);
                        $c /= 256;
                        $c = (int)$c;
                }
                if($c != 0){
                    throw new \Exception("address too long");
                }
        }
 
        $result = "";
        foreach($out as $val){
                $result .= chr($val);
        }
 
        return $result;
}
 
function main () {
  $s = array(
                "1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nK9",
                "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i",
                "1Q1pE5vPGEEMqRcVRMbtBK842Y6Pzo6nJ9",
                "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62I",
        );
  foreach($s as $btc){
    $message = "OK";
    try{
        validate($btc);
    }catch(\Exception $e){ $message = $e->getMessage(); }
    echo "$btc: $message\n";
  }
}
 
main();
169  Bitcoin / Bitcoin Technical Support / Re: How to optimize our Bitcoin integration? on: August 19, 2016, 04:33:52 AM
Although I haven't tried it in production this is how I was thinking of handling the gap issue.

1. generate new address
 - - check the current gap
2. If current gap is > 19 then
 - - call block.io to send a small payment to the newly generated address
3. discard that address
4. return to #1 (gap should now be zero).

You can check the current gap of addresses that haven't received a payment by calling https://blockchain.info/v2/receive/checkgap?xpub={xpub}&key={apikey}

You’ll get a JSON response like: { “gap”: 12 } if it reaches more than 20 you'll get an error.

So when generating a new address, I'd check the current gap for my xpub, and if it is larger than 19, then I will send a small payment myself to the newly generated address so the gap resets to zero, scrap the address, and generate another new address for the user to use.

The issue here is even though you are sending funds to yourself so you don't lose funds, it will still cost you transaction fees every time there's a 20 address gap. I'd use block.io to send the payment since just sending a payment from a single address will still be within their free api service.

Personally I think BIP32 does not work well with accepting payments online strictly because of the look-ahead issue. This happens with all wallets, it's not just a blockchain.info problem. I'd rather just use a fully functional wallet API, bitcoind or even generate key pairs on the fly and temporarily store them on the server for later once a payment is received to sweep the funds off your server.
170  Economy / Services / Re: BTCWIDGET.COM - Highly customizbable widgets for your website or blog on: August 16, 2016, 03:57:03 AM
UPDATE: Added Price Ticker V2. More stats, figures update live on the screen, and custom colors!

171  Bitcoin / Project Development / Re: So You Want To Use Bitcoin On Your Website? on: August 16, 2016, 03:32:08 AM
UPDATE:

The Building Bitcoin Websites Book is now available on Amazon!

https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X

This is the thread started it all. It's taken an entire year but I've finally finished my book!

If you liked my tutorials take it a step further and check out my new book, Building Bitcoin Websites: A Beginner's Guide To Bitcoin Focused Web Development. Learn to become a full stack developer while leveraging the use of Bitcoin integration. Take your ideas and turn them into completed working websites!


172  Bitcoin / Bitcoin Technical Support / Re: Random Address generator and balance checker on: August 09, 2016, 02:27:38 AM
Here you go. Don't run this more than 100 times in 5 minutes or you'll get the ban hammer from Blockchain.

http://phpfiddle.org/lite/code/4q2m-6sga

Code:
<?php
$counter 
0;
while(
$counter 5){
//gen new key pair
$url "https://blockchain.info/q/newkey";
$content file_get_contents($url);
$arrEx explode(" "$content);

$bitcoin_address $arrEx[0];
$privKey $arrEx[1];
//check the balance
$jsondata json_decode(file_get_contents("https://blockchain.info/address/$bitcoin_address?format=json"), true);
$totRec $jsondata["total_received"];
echo "Address: ".$bitcoin_address;
echo "<br>Key: ".$privKey;
echo "<br>Bal: ".$totRec ."<br><br>";
$counter++;
}
?>

173  Bitcoin / Bitcoin Technical Support / Re: Methods to monitor an address on: August 04, 2016, 04:58:26 AM
Hmm thanks for the replies.
These methods would definitely work, but I also want to see if its possible to do this without relying on someone elses website/ email service.

I guess at that point you are looking at running a node yourself and analyzing the blockchain as new transactions come in.
This would be a lot more work but its a project I'm interested in since I'm trying to improve my programming skills and learn more about Bitcoin.

I posted an answer to this a few months back on bitcoin.stackexchange http://bitcoin.stackexchange.com/questions/44373/how-would-one-monitor-an-address-for-a-transaction-and-1-confirmation-in-php

Start a new node at home that will be connected 24/7.
In your bitcoin.conf set a walletnotify

Make sure the address you are monitoring is imported into your bitcoind wallet.
Set wallet notify up in your bitcoin.conf

   
Code:
 walletnotify=curl https://yourwebsite.com/script.php?txid=%s

Now anytime there is activity on your bitcoind wallet your script will run, with the transaction id stored in a GET under `["txid"]` and then you can do a script like:

   
Code:
require("easybitcoin.php");
    $bitcoin = new Bitcoin("someusername", "somepassword");
   
    $txid = $_GET["tx"];
    $txinfo = $bitcoin->gettransaction($txid);
    $details = count($txinfo["details"]);

    for($i=0;$i<$details;$i++){
    $check = $txinfo["details"][$i]["address"];
    $addy = "1SomeAddressToMonitor";
        if($check == $addy){
        //activity on your address, do something like send an email
         $email = "my@email.com";
         $subject = "New Activity";
         $body - "There was a transaction on ".$addy.". The transaction ID is ".$txid;
         mail($email, $subject, $body);
        }
    }
174  Bitcoin / Project Development / Re: Looking for HTTP callback service for receiving payments from xpub on: August 04, 2016, 04:40:43 AM
Does it have to be the BIP32 HD setup?
Because someone made a clone of the old Blockchain Receive Payments API V1(blockapi.net) where you just use a GET request. Provide an address and it returns a fresh address for receiving payments, and will send a callback to the URL you specify. Works exactly like the old service used to, except this one charges a 1% fee on each transaction.

Example:
Code:
http://www.blockapi.net/api/receive?method=create&address=1YourBTCAddress&callback=http%3A%2F%2Fmysite.com%2Freceive
175  Bitcoin / Project Development / Re: BOOK: A Beginner's Guide To Bitcoin Focused Web Development on: August 02, 2016, 04:04:50 AM
Amazon's "Look Inside" Preview is now available.
Check it out! https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X
176  Bitcoin / Development & Technical Discussion / Re: How secure is this process to generate an address offline? on: August 02, 2016, 03:57:40 AM
The way you explain is safe assuming the machine you are using is not already compromised.
Also make sure you know how to spend from a multisig address on your own. Because if you don't, what will do you if coinb.in goes offline?

For step 3, make sure you know which order your private keys go. Creating a multisig address with M of N keys will have a different address and redeem script when put in different order.  A multisig of addresses A, B, C, will be different than addresses A, C, B. 

I do something similar except I generate my private keys with dice, then I made it into a multisig. It's probably over-kill but I sleep better knowing that my seeds are 100% random. 
177  Other / Off-topic / Re: About binary options and forex on: July 29, 2016, 12:20:47 AM
I tried Nadex recently to see if my trading skills would help me win the binaries.  I doubled my money pretty quickly, and then I lost it all. It seems a lot more like gambling than trading, so I'll stick to trading where there is better risk management. That's the thing with places like Nadex, you can set take-profit levels, but you can't put in a stop loss.

So your experience with NADEX is not good at all ?



Nadex themselves and the platform was fine, just not my style of trading gambling.
178  Bitcoin / Project Development / Re: BOOK: A Beginner's Guide To Bitcoin Focused Web Development on: July 28, 2016, 12:40:02 PM
Well done for the book release. We need more people like you doing good work in-support for Bitcoin. How do you plan on marketing the book, so you can cover your costs, time, and possible create another revision?
He is selling the book on amazon and with the current niche,there is no-less competition in his domain!

@Author : Bloody Amazing ! Glad you put it all together !However,any revision versions in progress ? Any core developers has reviewed the book yet? I might as well wait for the revised version.

I don't think a core dev, that understands the intricacies of advanced hashing algorithms and cryptography, would be interested viewing a book that just builds on top of the core api.  Seems like asking a rocket scientist to review a
baking soda and vinegar volcano science project.

I encourage you to check out my latest lessons on YouTube to get an idea of what I do.  Link is in the original post, sorry I'd post it here but on my cell and I'm completely useless on my phone Smiley
179  Bitcoin / Bitcoin Technical Support / Re: Integrating Auto Recieiving for Purchases for Payment release on: July 28, 2016, 02:33:29 AM
So you want to set up an escrow system? That's what it sounds like to me.

Are you building from scratch? How much customization are you able to do with your e-commerce platform?

If you can build from scratch set it up in bitcoind with JSON RPC, you can prune it so you don't have to store the full blockchain. The biggest inconvenience is waiting for it to sync, which isn't so bad these days, the one I set up on digitalocean last month took less than 24 hours.

I'd just create a simple user/member system that assigns each user a specific address when they sign up.

something like
Code:
//new user registers
$userid = uniqid();
$addy = $bitcoin->getnewaddress();
$newuser = "INSERT INTO users
               (`USERID`, `USERNAME`, `PASSWORD`, `DEPOSIT_ADDRESS` ...etc

Seller posts something for sale and specifies a receiving/withdrawal address, buyer clicks to buy, and they send bitcoins to the deposit address which is an address that YOU control specifically.

Upon receipt notify the seller to deliver the item. You can use walletnotify in your bitcoin.conf to monitor for new transactions.

The details of this transaction will be logged in your database so the user can go back later to verify they received the item.
Once they receive the item they return to the site, click the "I received it" button and it will pull the amount of the sale from your database where you can then fire a sendtoaddress() via JSON RPC to send the funds to an address that the seller specifies (not their deposit address, an address they own and control).  Then mark the transaction as complete in your database.

Code:
//user clicks received it button
$checkAddy = $bitcoin->validateaddress($withdrawalAddress);
$isValid = $checkAddy['isvalid'];
if(!$isValid){
$message = "Address is invalid";
} else {
//process withdrawal
$withdrawal = $bitcoin->sendtoaddress($withdrawalAddress, $transactionAmount);
$message = "Transaction: ".$withdrawal."<br>";
        }

That would be the basics of it at least. You would need to figure out how you will handle disputes and stuff like that. Or you could do it using a 3rd party API like blocktrail, or blockchain.info.
180  Other / Off-topic / Re: About binary options and forex on: July 28, 2016, 02:07:43 AM
I tried Nadex recently to see if my trading skills would help me win the binaries.  I doubled my money pretty quickly, and then I lost it all. It seems a lot more like gambling than trading, so I'll stick to trading where there is better risk management. That's the thing with places like Nadex, you can set take-profit levels, but you can't put in a stop loss.
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 ... 109 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!