Bitcoin Forum

Bitcoin => Project Development => Topic started by: stick on January 31, 2013, 10:28:58 AM



Title: HTML Meta Tag for Bitcoin (donations)
Post by: stick on January 31, 2013, 10:28:58 AM
Hi!

I would like to propose the following HTML meta tag for Bitcoin donations. If this idea is accepted, one could create a browser extension that shows the bitcoin icon in the URL bar and user can simply donate to the website by clicking on it (which will launch bitcoin client with pre-filled address).

example:

<meta name="bitcoin" content="1BitkeyP2nDd5oa647AjvBbbwST54W5Zmx" />

What do you think about that? Does it make sense to you?


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: bitpop on January 31, 2013, 11:06:09 AM
I like it


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: Stephen Gornick on January 31, 2013, 12:26:34 PM
user can simply donate to the website by clicking on it (which will launch bitcoin client with pre-filled address).

See URI scheme, BIP 21:

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

Example:

Creating and parsing "bitcoin:" URI Strings:

This is the easiest part, which is fully-documented in BIP 21: URI Scheme (https://en.bitcoin.it/wiki/BIP_0021).   Here a simple example of how you would include it (using my donation address, of course!)

Code:
<a href="bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=1.0&label=Armory%20Donation%20Address&message=Donation%20to%20Armory">Donate 1.0 BTC to the Armory Project!</a>

...which looks like:  Donate 1.0 BTC to the Armory Project! (bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=1.0&label=Armory%20Donation%20Address&message=Donation%20to%20Armory)


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: bitfreak! on January 31, 2013, 12:55:52 PM
FireCoin (https://addons.mozilla.org/en-us/firefox/addon/firecoin/)

<meta name="bitcoin" content="1KHTs795SKBd2yBfdfpf4BxArEq5RGrNZo" />


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: World on January 31, 2013, 02:31:27 PM
coinbase has a nice donation button code
http://blog.coinbase.com (http://blog.coinbase.com)


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: Xenland on February 05, 2013, 05:29:05 PM
Great idea! I shalt do this with my btc websites, weee


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: Stemby on July 17, 2015, 03:29:04 PM
Old topic found by Google :)

Here is the official HTML5 proposal:

https://wiki.whatwg.org/wiki/MetaExtensions

Ciao!


Title: Re: HTML Meta Tag for Bitcoin (donations)
Post by: coinableS on July 18, 2015, 12:55:19 AM
user can simply donate to the website by clicking on it (which will launch bitcoin client with pre-filled address).

See URI scheme, BIP 21:

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

Example:

Creating and parsing "bitcoin:" URI Strings:

This is the easiest part, which is fully-documented in BIP 21: URI Scheme (https://en.bitcoin.it/wiki/BIP_0021).   Here a simple example of how you would include it (using my donation address, of course!)

Code:
<a href="bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=1.0&label=Armory%20Donation%20Address&message=Donation%20to%20Armory">Donate 1.0 BTC to the Armory Project!</a>

...which looks like:  Donate 1.0 BTC to the Armory Project! (bitcoin:1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv?amount=1.0&label=Armory%20Donation%20Address&message=Donation%20to%20Armory)


Yea but that's just a URI link to open someone's local wallet. Adding a metatag opens the doors to more possibilities and layers on top. Like OP stated browser extensions. In the distant future when bitcoin is widespread the metatag could be scrapped by google's robots and added to results. So if you search for "Brooklyn Cupcakes" you'll receive all the matches, plus they could use that metatag to indicate they accept bitcoin.

Brooklyn Designer Cakes
www.designercakes.net
We offer and makes amazing cakes for everybody, order today with Visa.

Matty's Magnificent Cakes
www.mmcakes.ny BTC
I make all my cakes by hand with natural ingredients. Come down and visit us and try our coffee. Free wifi!

Mastercard Cakes
www.mastercakes.us
We are really old and do things the old way. We only accept cash and mastercard. Newspapers also available for $1.25

In the above example Matty has the bitcoin metatag so he gets a little BTC by his search result.