Bitcoin Forum
May 11, 2024, 02:37:59 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: New to bitcoin programming  (Read 542 times)
Jessica432 (OP)
Newbie
*
Offline Offline

Activity: 16
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
1715438279
Hero Member
*
Offline Offline

Posts: 1715438279

View Profile Personal Message (Offline)

Ignore
1715438279
Reply with quote  #2

1715438279
Report to moderator
1715438279
Hero Member
*
Offline Offline

Posts: 1715438279

View Profile Personal Message (Offline)

Ignore
1715438279
Reply with quote  #2

1715438279
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715438279
Hero Member
*
Offline Offline

Posts: 1715438279

View Profile Personal Message (Offline)

Ignore
1715438279
Reply with quote  #2

1715438279
Report to moderator
morkaii
Newbie
*
Offline Offline

Activity: 10
Merit: 4


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

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

Activity: 1624
Merit: 2481



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

One option would be to learn javascript via free eBooks. Look here (https://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
Member
**
Offline Offline

Activity: 85
Merit: 122


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: 4312
Merit: 3214



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: https://github.com/bcoin-org/bcoin

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
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
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



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: 1036
Merit: 273


View Profile
August 02, 2018, 03:16:29 PM
Last edit: August 02, 2018, 03:56:42 PM by Jaycee99
 #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
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



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.

olivia jane567
Newbie
*
Offline Offline

Activity: 98
Merit: 0


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

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
 #12

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.
rajmani
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
August 11, 2018, 01:12:17 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.
Do you have any reference/ example project to try out with hyperledger ?
christina.arnigo
Newbie
*
Offline Offline

Activity: 83
Merit: 0


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

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: 3150
Merit: 2933


Top Crypto Casino


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

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 https://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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!