Bitcoin Forum
October 18, 2018, 01:42:41 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: New to bitcoin programming  (Read 415 times)
Jessica432
Newbie
*
Offline Offline

Activity: 15
Merit: 1


View Profile
July 17, 2018, 06:08:00 AM
 #1

I am new to bitcoin programming. I am using Java Script and need pointers to help me develop code for following:
- Create a bitcoin address
- Send bitcoin from one account to another
- Get balance for a bitcoin account.

I will really appreciate any help or any pointers in this regard.

Jessica
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
morkaii
Newbie
*
Offline Offline

Activity: 10
Merit: 3


View Profile
July 17, 2018, 08:46:05 AM
 #2

Hello.
You should find any interesting stuff here:
http://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line
http://github.com/bitcoinbook/bitcoinbook
bob123
Hero Member
*****
Offline Offline

Activity: 714
Merit: 582



View Profile WWW
July 17, 2018, 09:43:54 AM
 #3

One option would be to learn javascript via free eBooks. Look here (http://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books.md) for a massive amount of free programming eBooks (just search for 'javascript')

The other (probably more easier option) would be to just use a javascript libary (e.g. bitcoinjs-lib).
Everything is explained very detailed in the readme file.

Kallisteiros
Copper Member
Jr. Member
*
Offline Offline

Activity: 56
Merit: 37


View Profile
July 17, 2018, 10:02:17 AM
 #4

Also, you have to set up a bitcoin node for most of those operations, or trust someone else's (not recommended) or hook up to someone's API, like blockchain.info wallet API (easiest for novices, but doesn't teach how to interact with an actual node, and requires trusting API provider).
hh4mmm
Member
**
Offline Offline

Activity: 378
Merit: 13


View Profile
July 18, 2018, 11:32:59 AM
 #5

I am new to bitcoin programming. I am using Java Script and need pointers to help me develop code for following:
- Create a bitcoin address
- Send bitcoin from one account to another
- Get balance for a bitcoin account.

I will really appreciate any help or any pointers in this regard.

Jessica

that is good, i m can help you do that but i can't drop it here so you private chat me or pm me so i take you clear about the program.
odolvlobo
Legendary
*
Offline Offline

Activity: 2282
Merit: 1146



View Profile
July 18, 2018, 07:42:31 PM
 #6

This may be very helpful to you.

http://bcoin.io/

It is an implementation of a Bitcoin full node in JS. It is used by Purse.io.

Repo is here: http://github.com/bcoin-org/bcoin

Buy bitcoins with cash from somebody near you: LocalBitcoins
Buy stuff on Amazon at a discount with bitcoins: Purse.io
Join an anti-signature campaign: DannyHamilton's ignore list
Erbens101
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile WWW
July 19, 2018, 06:39:18 PM
 #7

Is there anything to be careful about while programming bitcoin?
bob123
Hero Member
*****
Offline Offline

Activity: 714
Merit: 582



View Profile WWW
July 19, 2018, 06:51:42 PM
 #8

Is there anything to be careful about while programming bitcoin?

You can't 'program bitcoin'.

But there are definitely quite a few things you have to care about when programming anything which handles sensitive information (in this case: private keys).
What exactly you have to care about depends on what kind of software you are writing.

If you are planning on creating an online service you'll need way more security precautions than when coding a small scrip which querys an API / your node.

So, if you want some advises on what to keep in mind when programming, the best would be to create a new thread describing what your plan is, so people can think of attack vectors / possible bugs.

Jaycee99
Sr. Member
****
Offline Offline

Activity: 518
Merit: 256


View Profile
August 02, 2018, 03:16:29 PM
 #9

I am new to bitcoin programming. I am using Java Script and need pointers to help me develop code for following:
- Create a bitcoin address
- Send bitcoin from one account to another
- Get balance for a bitcoin account.

I will really appreciate any help or any pointers in this regard.

Jessica

User Jessica432  Iam interested in bitcoin and in the world of crypto which means I would love to work with anything that is connected to bitcoin and my point of interest that is programing.

I'am going to study programming this August and I dont want to act that I know all about the things you will do and give tips and suggestions but there is a onething that I notice in a website and that is not good in a site and its project which anytime soon like every week it experience error which users can't access there account.

Which I think the reason could be to many user are creating accounts, So I thought if a programmer is not ready for this because there website is always creating an error which there creator is not a good one that could handle any possible scenario.

Now My question that I hope someone could answer:
Is the reason for possible error, are the users who creates more accounts is the results of error?
bob123
Hero Member
*****
Offline Offline

Activity: 714
Merit: 582



View Profile WWW
August 02, 2018, 03:24:04 PM
 #10

Now My question that I hope someone could answer:
Is the reason for possible error are the users use and creates account in results error?


There are several sources of error which can result in lost funds.
The most critical probably are the gathered entropy, the correctness of the implementation, and the storage of the private keys.

Generally, if a user creates an address on your site, your backend server is generating a valid private key and stores it associated to  the users ID in the database.
If your implementation is correct and you are not vulnerable to any form of attacks, it won't result in errors.
But if your implementation is buggy on the other hand, the possibility definitely exists that some malicious actor could trick your system to pay out more funds than it should.

2287aidaduo
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
August 03, 2018, 07:50:33 AM
 #11

I really do not know whether Javascript can do that or not. But if you can use PHP / MYSQL / CENTOS7 I can do it for you without any fees.
You can go here to find out: http://medium.com/blockthought/creating-bitcoin-wallets-in-js-69c0773c2954
olivia jane567
Newbie
*
Offline Offline

Activity: 84
Merit: 0


View Profile WWW
August 04, 2018, 06:27:33 AM
 #12

Hello, there is telegram group called premium ebooks. You can search them and join. They can provide you a very good JS book which will help you learn very well.
highflyer235
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 06, 2018, 04:21:36 AM
 #13

I have tried nodeJs base blockchain programs  which is very fast and with quick setup. If you want start for enterprise level and would like to try quickly, you should go for HyperLedger.
rpstatic
Jr. Member
*
Offline Offline

Activity: 56
Merit: 7


View Profile
August 06, 2018, 08:50:59 AM
 #14


Bitcoin from the command line looks promising, but it seems that there are a few pages missing.
E.g.: http://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line/blob/master/12_2_Accessing_Bitcoind_with_C.md returns a 404 error.

★ PRiVCY ➢ Own Your Privacy! ➢ Best privacy crypto-market! ★
✈✈✈[PoW/PoS]✅[Tor]✅[Airdrop]✈✈✈ (http://privcy.io/)
rajmani
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 11, 2018, 01:12:17 AM
 #15

I have tried nodeJs base blockchain programs  which is very fast and with quick setup. If you want start for enterprise level and would like to try quickly, you should go for HyperLedger.
Do you have any reference/ example project to try out with hyperledger ?
Bendyron
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
August 14, 2018, 01:25:55 AM
 #16

There have some good sources to know about the niche you are interested in. The best way is to google for it. Anyways, if you would like to get knowledge about the crypto you might take a look at SciDex. Because as far as I know SciDex recently added a new protocol in their program. In this way, any volunteer can easily join and work closely with the team. Here is a great chance to grow yourself and make you a perfect guy. You might get some more details here: http://medium.com/@SciDex/scidex-join-our-team-as-a-volunteer-ff642ed95aa2
christina.arnigo
Newbie
*
Offline Offline

Activity: 83
Merit: 0


View Profile
August 14, 2018, 10:35:42 AM
 #17

If you are a beginner in bitcoin programming, do not expect that you will learn it overnight.  Crypto or bitcoin is so deep that you have to dig slowly for you to absorb everything about it. You can search and study bitcoin but as they said, experience is the best teacher.  In learning bitcoin, you have lots of adversary, there are hackers and scammers. Beware of them because once you have experienced those things, you cant do anything but to cry. because you can lose everything in just one second. This is one of the most painful experience that can happen. But do not stop but rather improve your knowledge about it so it wont happen again.  Be eager to learn to protect whatever is yours. And time will come, you will see yourself mentoring a newbie in the bitcoin world.
seoincorporation
Legendary
*
Offline Offline

Activity: 1134
Merit: 1168


BtcBoss


View Profile
August 17, 2018, 06:21:50 PM
 #18

I am new to bitcoin programming. I am using Java Script and need pointers to help me develop code for following:
- Create a bitcoin address
- Send bitcoin from one account to another
- Get balance for a bitcoin account.

I will really appreciate any help or any pointers in this regard.

Jessica

Hello Jessica, i'm a bitcoin coder, i have work in some big projects and learned a lot on the way. What you want to do could be done by 2 ways.

1.-Get an API from a service who rune a bitcoin node, i'm not sure but i think blockchain.info have an API. That wayyou will be able to do those 3 things

2.-(The pro way) install bitcoin core and use a wrapper to call core commands from JS.

Look at this nice tool, for sure will help you http://www.npmjs.com/package/bitcoin-core

With this tool and JS you can make calls like
Quote
client.createRawTransaction([{ txid: '1eb590cd06127f78bf38ab4140c4cdce56ad9eb8886999eb898ddf4d3b28a91d', vout: 0 }], { 'mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe': 0.13 });
client.sendMany('test1', { mjSk1Ny9spzU2fouzYgLqGUD8U41iR35QN: 0.1, mgnucj8nYqdrPFh2JfZSB1NmUThUGnmsqe: 0.2 }, 6, 'Example Transaction');
client.sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.1,  'sendtoaddress example', 'Nemo From Example.com');

const balance = await new Client().getBalance('*', 0);

Hope that info helps and have a happy coding Jessica  Wink

.BitDice.               ▄▄███▄▄
           ▄▄██▀▀ ▄ ▀▀██▄▄
      ▄▄█ ▀▀  ▄▄█████▄▄  ▀▀ █▄▄
  ▄▄██▀▀     ▀▀ █████ ▀▀     ▀▀██▄▄
██▀▀ ▄▄██▀      ▀███▀      ▀██▄▄ ▀▀██
██  ████▄▄       ███       ▄▄████  ██
██  █▀▀████▄▄  ▄█████▄  ▄▄████▀▀█  ██
██  ▀     ▀▀▀███████████▀▀▀     ▀  ██
             ███████████
██  ▄     ▄▄▄███████████▄▄▄     ▄  ██
██  █▄▄████▀▀  ▀█████▀  ▀▀████▄▄█  ██
██  ████▀▀       ███       ▀▀████  ██
██▄▄ ▀▀██▄      ▄███▄      ▄██▀▀ ▄▄██
  ▀▀██▄▄     ▄▄ █████ ▄▄     ▄▄██▀▀
      ▀▀█ ▄▄  ▀▀█████▀▀  ▄▄ █▀▀
           ▀▀██▄▄ ▀ ▄▄██▀▀
               ▀▀███▀▀
        ▄▄███████▄▄
     ▄███████████████▄
    ████▀▀       ▀▀████
   ████▀           ▀████
   ████             ████
   ████ ▄▄▄▄▄▄▄▄▄▄▄ ████
▄█████████████████████████▄
██████████▀▀▀▀▀▀▀██████████
████                   ████
████                   ████
████                   ████
████                   ████
████                   ████
████▄                 ▄████
████████▄▄▄     ▄▄▄████████
  ▀▀▀█████████████████▀▀▀
        ▀▀▀█████▀▀▀
▄▄████████████████████████████████▄▄
██████████████████████████████████████
█████                            █████
█████                            █████
█████                            █████
█████                            █████
█████                     ▄▄▄▄▄▄▄▄▄▄
█████                   ▄█▀▀▀▀▀▀▀▀▀▀█▄
█████                   ██          ██
█████                   ██          ██
█████                   ██          ██
██████████████████▀▀███ ██          ██
 ████████████████▄  ▄██ ██          ██
   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ██          ██
             ██████████ ██          ██
           ▄███████████ ██████▀▀██████
          █████████████  ▀████▄▄████▀
[/]
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!