Bitcoin Forum
May 03, 2024, 03:12:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bitcoin-JS] Accepting/Sending BTC via Website. - Help? Pointers?  (Read 657 times)
DrSeuss (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
January 19, 2017, 03:55:46 PM
 #1

What's up guys.  Wink

I'm a developer and currently got a neat little idea for a website on my mind.
To get everything done I need to be able to accept and send bitcoins via my website.
I googled and found the https://github.com/bitcoinjs/bitcoinjs-lib which caught my attention.

Now the problem is that I find it hard to find get all the information I need in order to be able to code what I want.
There are a few basic examples but I don't seem to find any kind of documentation or such, so it's hard for me to understand what exactly to do.

I don't really need much, just creating adresses & accepting/sending bitcoins like for example done on this website
https://satoshimines.com/ (It's so fast and smooth, that's what I really love about it)

Can anyone give me a few pointers or such?
I really want to learn how to code this.  Smiley
Thanks for every bit of help.  Wink

Cheerz,
Seuss  Cheesy
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714749129
Hero Member
*
Offline Offline

Posts: 1714749129

View Profile Personal Message (Offline)

Ignore
1714749129
Reply with quote  #2

1714749129
Report to moderator
1714749129
Hero Member
*
Offline Offline

Posts: 1714749129

View Profile Personal Message (Offline)

Ignore
1714749129
Reply with quote  #2

1714749129
Report to moderator
1714749129
Hero Member
*
Offline Offline

Posts: 1714749129

View Profile Personal Message (Offline)

Ignore
1714749129
Reply with quote  #2

1714749129
Report to moderator
coinableS
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



View Profile WWW
January 20, 2017, 06:15:20 AM
Merited by ABCbits (1)
 #2

BitcoinJS is a library that makes it easier to do bitcoin stuff in nodeJS like the hashing algorithms and dependent crypto libraries. If you're just starting out it will be a bit of a journey before you can build what you are asking.

If you're just looking to get your feet wet:

https://medium.com/@orweinberger/how-to-create-a-raw-transaction-using-bitcoinjs-lib-1347a502a3a#.btd28j2mn

https://www.youtube.com/watch?v=UhuglfOCgk0 I made a introductory video tutorial on creating addresses with BitcoinJS

If it seems like too much, you'll want to try a wallet API(blocktrail.com, blockchain.info, block.io, blockcypher), but most wallet API providers don't like to host sites like satoshimines.

Jet Cash
Legendary
*
Offline Offline

Activity: 2702
Merit: 2456


https://JetCash.com


View Profile WWW
January 20, 2017, 01:43:26 PM
 #3

I'm using CMS to develop websites now. It makes things much easier, and the websites are reactive without much effort on my part. It's this reactive bit that could involve you in a fair bit of work. Both Drupal and Wordpress have a selection of modules already coded. You just plug them into your installation.

This doesn't answer your question, but it may free up some of your time to expand the sites.

Offgrid campers allow you to enjoy life and preserve your health and wealth.
Save old Cars - my project to save old cars from scrapage schemes, and to reduce the sale of new cars.
My new Bitcoin transfer address is - bc1q9gtz8e40en6glgxwk4eujuau2fk5wxrprs6fys
esotericizm
Hero Member
*****
Offline Offline

Activity: 750
Merit: 500



View Profile
January 23, 2017, 06:31:38 AM
 #4

The easy way is that you generate a privkey/pubkey. Show the client the  public address and then use a setinterval on the client to query a block explorer API for any transactions to that address.

I've found bitcore to have  better documentation than bitcoin-js and it sounds like you may benefit from their playground.

https://bitcore.io/playground/#/units
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!