Title: Bitcoin Magnet Link? Post by: tiberiandusk on March 26, 2011, 09:11:22 AM Is it possible to add magnet link support similar to those used by bittorrent sites to the Bitcoin program so you could make a magnet link of your Wallet address? That way people with Bitcoin installed could just click a link and have an easy way to donate or pay for stuff.
Title: Re: Bitcoin Magnet Link? Post by: error on March 26, 2011, 08:41:25 PM https://en.bitcoin.it/wiki/URI_Scheme
Title: Re: Bitcoin Magnet Link? Post by: ryepdx on March 26, 2011, 08:44:34 PM https://en.bitcoin.it/wiki/URI_Scheme Someone needs to write a Firefox/Chrome/IE extension to support that scheme. Title: Re: Bitcoin Magnet Link? Post by: ThiagoCMC on July 14, 2011, 02:30:18 AM Let's do it?!?
http://en.wikipedia.org/wiki/Magnet_URI_scheme http://en.wikipedia.org/wiki/Uniform_Resource_Name Title: Re: Bitcoin Magnet Link? Post by: cande on July 22, 2012, 09:07:47 PM https://en.bitcoin.it/wiki/BIP_0021
Title: Re: Bitcoin Magnet Link? Post by: gweedo on July 22, 2012, 11:52:54 PM https://en.bitcoin.it/wiki/URI_Scheme Someone needs to write a Firefox/Chrome/IE extension to support that scheme. what would an extension do? if the client program doesn't register the URI scheme you can't really do anything and most people would do Code: <a href="bitcoin:175tWpb8K1S7NmH4Zx6rewF9WQrcZv245W">Donate HERE</a> Title: Re: Bitcoin Magnet Link? Post by: Dice on July 23, 2012, 06:54:21 PM Quote Someone needs to write a Firefox/Chrome/IE extension to support that scheme. Based on this reply i think it can be done in a hackish nature for Chrome: http://stackoverflow.com/a/2337525/1219907 Title: Re: Bitcoin Magnet Link? Post by: gweedo on July 23, 2012, 07:01:06 PM Quote Someone needs to write a Firefox/Chrome/IE extension to support that scheme. Based on this reply i think it can be done in a hackish nature for Chrome: http://stackoverflow.com/a/2337525/1219907 if you read the top, it says that it needs to be registered to the OS, bitcoin-qt isn't registered to the OS as a handler for the bitcoin URI. Title: Re: Bitcoin Magnet Link? Post by: etotheipi on July 23, 2012, 07:04:58 PM These URIs should all work "out-of-the-box" if your Bitcoin application does its job correctly (and registers itself with your OS). Unfortunately, Bitcoin-Qt does not do this, for reasons I haven't fully understood yet (perhaps bugginess of implementation). However, most of the alternative clients do this, and simply installing and/or running those programs once will then make "bitcoin:" links clickable from any browser without the user having to setup anything.
Armory checks for the currently-registered application on load and asks if you want to make Armory default. Multibit and Electrum, I believe they register themselves as the "bitcoin:" handler when you install them. I think some pressure should be applied to the core Bitcoin-Qt dev team to do something like this too. It's a tremendously valuable feature for Bitcoin users, especially new ones, to not have to copy and paste information all over the place to send money. Title: Re: Bitcoin Magnet Link? Post by: Dice on July 23, 2012, 07:06:27 PM Quote Someone needs to write a Firefox/Chrome/IE extension to support that scheme. Based on this reply i think it can be done in a hackish nature for Chrome: http://stackoverflow.com/a/2337525/1219907 if you read the top, it says that it needs to be registered to the OS, bitcoin-qt isn't registered to the OS as a handler for the bitcoin URI. http://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx Title: Re: Bitcoin Magnet Link? Post by: gweedo on July 23, 2012, 07:16:02 PM Quote Someone needs to write a Firefox/Chrome/IE extension to support that scheme. Based on this reply i think it can be done in a hackish nature for Chrome: http://stackoverflow.com/a/2337525/1219907 if you read the top, it says that it needs to be registered to the OS, bitcoin-qt isn't registered to the OS as a handler for the bitcoin URI. http://msdn.microsoft.com/en-us/library/aa767914%28v=vs.85%29.aspx Read etotheipi what says about bitcoin-qt, it doesn't support the bitcoin URI as of now, and plus if you could send the URI to bitcoin-qt it will not parse it or accept it. So getting bitcoin-qt to work would take you coding it yourself. Title: Re: Bitcoin Magnet Link? Post by: rjk on July 23, 2012, 07:19:00 PM I thought the installer for bitcoin-qt took care of the URI registration, but the standalone won't do it. It's an NSIS installer, so it would be easy to extract the code and create a patcher that updates the registry without doing anything else.
Title: Re: Bitcoin Magnet Link? Post by: gweedo on July 23, 2012, 07:20:18 PM I thought the installer for bitcoin-qt took care of the URI registration, but the standalone won't do it. It's an NSIS installer, so it would be easy to extract the code and create a patcher that updates the registry without doing anything else. only bad thing that is only for windows not Mac :( Title: Re: Bitcoin Magnet Link? Post by: rjk on July 23, 2012, 07:59:33 PM I thought the installer for bitcoin-qt took care of the URI registration, but the standalone won't do it. It's an NSIS installer, so it would be easy to extract the code and create a patcher that updates the registry without doing anything else. only bad thing that is only for windows not Mac :( Code: OutFile bitcoin-register-URI.exe It works, except that when you click a link bitcoin-qt complains that it is already running and then exits. Title: Re: Bitcoin Magnet Link? Post by: Foxpup on July 23, 2012, 08:04:46 PM Read etotheipi what says about bitcoin-qt, it doesn't support the bitcoin URI as of now, and plus if you could send the URI to bitcoin-qt it will not parse it or accept it. So getting bitcoin-qt to work would take you coding it yourself. Bitcoin-Qt does fully support bitcoin URIs, and has since version 0.6.0, it just doesn't doesn't automatically register itself as a URI handler. You can register it manually if you want, and even if you don't, you can still pass bitcoin URIs to it as a command-line argument or drag-and-drop bitcoin URI links onto the Bitcoin-Qt window.I tried it just for fun, but for some reason the string doesn't get passed properly, or else Bitcoin-qt doesn't yet know how to handle URIs. This is the code I used: What version of Bitcoin-Qt are you using?Code: Name "Bitcoin Standalone URI Registration" It works, except that when you click a link bitcoin-qt complains that it is already running and then exits. Title: Re: Bitcoin Magnet Link? Post by: rjk on July 23, 2012, 08:07:50 PM What version of Bitcoin-Qt are you using? 0.6.3Title: Re: Bitcoin Magnet Link? Post by: etotheipi on July 23, 2012, 08:08:43 PM Not directed towards any particular person/group, I created a walk-thru based on my experience implementing URI support in Armory.
https://bitcointalk.org/index.php?topic=79010.0 It shows how to do it in windows with the registry (non-admin, like Firefox/Chrome/IE setting your default browser), and for a couple of Ubuntu/Gnome variants (because it's fairly straightforward in Gnome, but Ubuntu 11.04+ switched to Unity and this kind of registration doesn't work anymore). Title: Re: Bitcoin Magnet Link? Post by: Foxpup on July 23, 2012, 08:13:05 PM What happens if you just run "bitcoin-qt bitcoin:somerandomaddress" from the command line (while Bitcoin-Qt is already running)?
Title: Re: Bitcoin Magnet Link? Post by: rjk on July 23, 2012, 08:18:11 PM What happens if you just run "bitcoin-qt bitcoin:somerandomaddress" from the command line (while Bitcoin-Qt is already running)? I get the same error:https://i.imgur.com/A9AFv.png Title: Re: Bitcoin Magnet Link? Post by: Foxpup on July 23, 2012, 08:23:18 PM What happens if you just run "bitcoin-qt bitcoin:somerandomaddress" from the command line (while Bitcoin-Qt is already running)? I get the same error:Title: Re: Bitcoin Magnet Link? Post by: rjk on July 23, 2012, 08:24:58 PM What happens if you just run "bitcoin-qt bitcoin:somerandomaddress" from the command line (while Bitcoin-Qt is already running)? I get the same error:Title: Re: Bitcoin Magnet Link? Post by: Foxpup on July 23, 2012, 08:29:01 PM Huh. What happens if you drag-and-drop a bitcoin URI link onto the Bitcoin-Qt window? That works, but it is a bit of a PITA. Also, you have to drop it in the big blank area, it won't work if you drop it anywhere else such as in the address field.Title: Re: Bitcoin Magnet Link? Post by: gweedo on July 23, 2012, 08:29:31 PM What happens if you just run "bitcoin-qt bitcoin:somerandomaddress" from the command line (while Bitcoin-Qt is already running)? I get the same error: |