sega01
Nickel Bitcoiner
Nickel Bitcoiner
Posts: 78
Joined: Sun Nov 08, 2015 9:05 pm
Location: Fort Collins, Colorado
Contact: Website

Developing with Bitcoin: Way to insert a Bitcoin Address into a field? (HTML/JS)

Thu Dec 08, 2016 5:18 pm

Hi everyone,

I initially posted this on Voat, but haven't yet heard back: https://voat.co/v/bitcoin/1468305

I'll quote the message here:

"Here's what I envision:

User browses to http://answer.market/ on their phone. On the Bitcoin address field, it auto completes to the address of their default wallet.

I don't know if that's possible or not. I know browsers have autocompleted forms for a while, but I'm not sure if there's some kind of mechanism in HTML/JS to say that you want to fetch such a resource, maybe with approval.

If there's no Bitcoin wallet installed, it could prompt the user, or maybe there's a way to integrate with a JS wallet for first time users? Something like this: https://rushwallet.com/

In theory, you could have a portable JS wallet across multiple sites for newbies. I realize this isn't ideal from a security perspective, but maybe it's a good way to get people's feet in the door.

What do you all think? How can I do this?

Thanks,
Teran"
[url=https://sporestack.com/]VPS hosting for Bitcoin Cash[/url] (As anonymous as you make it, API-driven, no emails. BTC, BCH, and BSV accepted)
[url=http://spore64i5sofqlfz5gq2ju4msgzojjwifls7rok2cti624zyq3fcelad.onion/]Tor VPS hosting for Bitcoin Cash[/url]
[url=https://bitcointalk.org/index.php?topic=5131573]Double Bitcoin Mixer (client side)[/url]

Rmcdermott927
Bronze Bitcoiner
Bronze Bitcoiner
Posts: 590
Joined: Tue Sep 20, 2016 7:32 pm

Re: Developing with Bitcoin: Way to insert a Bitcoin Address into a field? (HTML/JS)

Fri Dec 09, 2016 4:17 am

There is already sort of a method for this. If you make an href with "bitcoin:1notAreaLaddress" it will open the users default wallet. If you add a "?amount=0.01" to the end of that, a static amount will be added.


Having a JavaScript wallet where sends are automatic from an external link has bad news written all over. I could just send you a link that says "Click here for free stuff" and embed my address details in it. Without second confirmation in the actual wallet, it would be disastrous.
Image

Return to “Project Development”

Who is online

Users browsing this forum: No registered users and 6 guests