Bitcoin Forum
May 11, 2024, 08:31:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Newbie in bitcoin  (Read 377 times)
Jessica432 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
September 13, 2018, 10:03:11 AM
 #1

I want to run full node on my box, and write a program which can get balance from an address and also transfer money using the node on my box. I would really appreciate any pointers to achieve it.
1715416315
Hero Member
*
Offline Offline

Posts: 1715416315

View Profile Personal Message (Offline)

Ignore
1715416315
Reply with quote  #2

1715416315
Report to moderator
1715416315
Hero Member
*
Offline Offline

Posts: 1715416315

View Profile Personal Message (Offline)

Ignore
1715416315
Reply with quote  #2

1715416315
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715416315
Hero Member
*
Offline Offline

Posts: 1715416315

View Profile Personal Message (Offline)

Ignore
1715416315
Reply with quote  #2

1715416315
Report to moderator
1715416315
Hero Member
*
Offline Offline

Posts: 1715416315

View Profile Personal Message (Offline)

Ignore
1715416315
Reply with quote  #2

1715416315
Report to moderator
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 13, 2018, 12:34:47 PM
 #2

Your information is a bit sparse.

I guess with 'box' you are talking about a raspberry pi ?

There are several (well-explained) guides available on the internet on how to set up a full node on a raspberry pi. This one for example.


You probably won't need to write an program yourself. You can easily use RPC to communicate with your node.
But note that you shouldn't store more than pocket money on your full node. Since it is always connected to the internet, it is more vulnerable to attacks and theft - by design.

apleio
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
September 15, 2018, 09:37:47 AM
 #3

If you are developing with NodeJS there are good dependencies to build great services based with a full node.
Jessica432 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
September 16, 2018, 10:47:51 PM
 #4

Thanks.

I am using WIndows 10 with 12 GB RAM with i5 8th generation. PLease suggest.
Jessica432 (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 1


View Profile
September 17, 2018, 04:32:44 AM
 #5

I am running full node on my box using these instructions: https://bitcore.io/guides/full-node

And I am writing javascript code (in nodejs) to do transfer using bitcore-lib: https://bitcore.io/api/lib/transaction

I want the bitcore-lib to do the transfer/getbalance using full node running on my box. How can I achieve it?
seoincorporation
Legendary
*
Offline Offline

Activity: 3150
Merit: 2933


Top Crypto Casino


View Profile
September 17, 2018, 01:57:17 PM
 #6

I am running full node on my box using these instructions: https://bitcore.io/guides/full-node

And I am writing javascript code (in nodejs) to do transfer using bitcore-lib: https://bitcore.io/api/lib/transaction

I want the bitcore-lib to do the transfer/getbalance using full node running on my box. How can I achieve it?

Well, for this you can support your self with the core calls: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

To get the balance from your wallet you use the getbalance call:
Code:
bitcoin-cli getbalance

To send btc you can use the send to address call:
Code:
bitcoin-cli sendtoaddress 1BtcAddy 0.001

There is other way to send, the complex one, there you have to listunspent, then take the inputs you want for your transaction, then make the raw transaction, sign it and push it. As i say this is the complex way, but the right way for a perfect handle.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
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!