Bitcoin Forum
November 14, 2024, 06:51:58 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin link protocol  (Read 1022 times)
thefinn93 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 05, 2011, 12:04:24 AM
 #1

I'm not really sure what to call this, but is there some sort of "protocol" for Bitcoin transfer, like btc:// or something? If not it ought to be made, as it makes a hell of a lot of sense (to me at least). Something like:

btc://<address>?amount=5.00&reason=1%20bar%20of%20chocolate

then Bitcoin processing apps/websites/whatever could request to use that protocol. Once you tell your computer/smart phone/what have you to use this app/website/whatever for btc:// URLs you could click a link or scan a QR code or whatever and it would open that app, which would confirm that you wish to transfer 5.00 BTC for "1 bar of chocolate" (using my example). If the user indicates that they would like to it goes ahead with the transfer. all of the parameters would be optional, as the only thing required would be the address and the rest could be manually input by the user. For people who like to store their bitcoins online, most modern browsers provide a Javascript interface for requesting the be opened when using a specific protocol. For example, mibbit, the web based IRC client, has an option to be set as your default IRC client.

I feel like something like this should exist but I haven't heard any mention of it. Does it exist? If not, i propose we implement this. I would be willing to write user scripts to modify popular web based Bitcoin services (until they implement it)
thefinn93 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 05, 2011, 01:33:05 AM
 #2

After looking into it some more it appears that only Firefox allows the registering of protocol handlers, unfortunately. I've made up a quick little example here which can register a protocol handler in Firefox and parse input given to it. It is in no way complete, mind you, and will probably break if you don't specify some parameters.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
July 05, 2011, 12:41:24 PM
 #3

I'm not really sure what to call this, but is there some sort of "protocol" for Bitcoin transfer, like btc:// or something?

  - http://en.bitcoin.it/wiki/URI_Scheme

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


thefinn93 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 09, 2011, 05:23:22 AM
 #4

of course. thanks!
Maxim Gladkov
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
July 09, 2011, 07:38:10 AM
 #5

After looking into it some more it appears that only Firefox allows the registering of protocol handlers, unfortunately. I've made up a quick little example here which can register a protocol handler in Firefox and parse input given to it. It is in no way complete, mind you, and will probably break if you don't specify some parameters.

And how do you think iTunes links work? Smiley
thefinn93 (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 09, 2011, 04:45:07 PM
 #6

iTunes registers a protocol. But it's a desktop application, so it's allowed to do that. Webpages aren't (anywhere but Firefox at least).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!