Bitcoin Forum

Other => Beginners & Help => Topic started by: electronicash on July 29, 2016, 03:13:33 AM



Title: btc address as link to open a harddrive wallet?
Post by: electronicash on July 29, 2016, 03:13:33 AM
I'm trying to create a link for the wabpage in my website. This is so that someone could just click the btc address and will open thier hard drive wallet and that they can donate easily. how do i do it that all they need to do is click the btc address link?


Title: Re: btc address as link to open a harddrive wallet?
Post by: xhomerx10 on July 29, 2016, 03:17:35 AM
I'm trying to create a link for the wabpage in my website. This is so that someone could just click the btc address and will open thier hard drive wallet and that they can donate easily. how do i do it that all they need to do is click the btc address link?

 You should move this to beginners and help.  See the move topic link in the lower left of your screen.

This is a simple link:
Code:
<a href="bitcoin:1RoMaNiAjSGeGsYJzPjsLUGogbDEsK4TZ">Send Bitcoin</a>



Title: Re: btc address as link to open a harddrive wallet?
Post by: electronicash on July 29, 2016, 03:37:33 AM
Thanks.

I was trying to make some altcoin trading tutorials hoping to educate viewers and donate even the smallest they can afford to give before the step by step tutorial be accessible. how about this? how can i do this?

each one must give as he has decided in his heart not reluctantly or under compulsion.  ;D


Title: Re: btc address as link to open a harddrive wallet?
Post by: grtthegreat on July 29, 2016, 06:17:39 AM
I'm trying to create a link for the wabpage in my website. This is so that someone could just click the btc address and will open thier hard drive wallet and that they can donate easily. how do i do it that all they need to do is click the btc address link?

The best way to do this is to use the HTML anchor (<a>) tag. The href attribute should be set accordingly to the address and optionally, an amount. Say, you want to accept donation to 1M2vskC1bHcWbdFiCQmF2kFjaaaHqdxEL4 and the amount should be 0.01, then here's the example syntax:

href = "bitcoin:<address goes here>?amount=<amount goes here>"

Code:
<a href = "bitcoin:1M2vskC1bHcWbdFiCQmF2kFjaaaHqdxEL4?amount=0.01">Donate 0.01 BTC</a>


Title: Re: btc address as link to open a harddrive wallet?
Post by: merelcoin on July 29, 2016, 06:26:22 AM
Just my 2 satoshi's: but wouldn't it be better to just show the QR code of your donation address?
Making a link as described by xhomerx10 would only work for the visitors that have setup their OS to use their wallet to open bitcoin links. All others will just click your link and they'll probably be redirected to an error page (haven't tried this out).

By showing a QR code, and maybe the address to, you'll appeal to people using a mobile wallet, and everybody else can just copy/paste the address..

Just my personal opinion tough


Title: Re: btc address as link to open a harddrive wallet?
Post by: Herbert2020 on July 30, 2016, 07:29:20 AM
Just my 2 satoshi's: but wouldn't it be better to just show the QR code of your donation address?
Making a link as described by xhomerx10 would only work for the visitors that have setup their OS to use their wallet to open bitcoin links. All others will just click your link and they'll probably be redirected to an error page (haven't tried this out).

By showing a QR code, and maybe the address to, you'll appeal to people using a mobile wallet, and everybody else can just copy/paste the address..

Just my personal opinion tough

not everybody owns a smart phone to scan the QR code and those who own a smart phone may not even have a bitcoin wallet installed on their phone.

besides if i can remember it right, the first time i installed Armory and it did that automatically without me even knowing it, so when i clicked on the link it redirected to my wallet. i haven't tested it with my Electrum yet!