Bitcoin Forum
April 13, 2021, 08:46:26 AM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Newbie in bitcoin  (Read 339 times)
Jessica432
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.
1618303586
Hero Member
*
Offline Offline

Posts: 1618303586

View Profile Personal Message (Offline)

Ignore
1618303586
Reply with quote  #2

1618303586
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
ETFbitcoin
Legendary
*
Offline Offline

Activity: 1834
Merit: 2729


NotYourKeys.org - Not Your Keys, Not Your Bitcoin


View Profile
September 13, 2018, 10:13:33 AM
 #2

I We need few information before we can help you including :
1. OS of your box or OS that you will use
2. Specification of your box (low-end CPU or low-amount RAM might have some limitation)

Since you plan to run full nodes, using Bitcoin Core's API RPC-JSON and short script/program should able to do the job. https://en.bitcoin.it/wiki/API_reference_(JSON-RPC) and https://bitcoin.org/en/developer-examples should be handy as starter.
But i'd recommend grab software from GitHub/GitLab if you don't have programming knowledge.

bob123
Legendary
*
Offline Offline

Activity: 1512
Merit: 2327



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

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: 41
Merit: 0


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

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

Activity: 16
Merit: 1


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

Thanks.

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

Activity: 16
Merit: 1


View Profile
September 17, 2018, 04:32:44 AM
 #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?
seoincorporation
Legendary
*
Offline Offline

Activity: 2044
Merit: 1714



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

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.


        ▄▄▀▀▀▄▄
     ▄▄▀▄▄███▄▄▀▄▄
  ▄▄▀▄▄█████████▄▄▀▄▄
▄▀▄▄█████ ██▄▄▄▄▀██▄▄▀▄
█ ██████ ▄ █████ ████ █
█ █████ ▄█▄ ██ ▄█████ █
█ ████ ▄███▄ ██ █████ █
█ ███ ▄█████▄ ██ ████ █
▀▄▀▀█▄███████▄██▄██▀▀▄▀
  ▀▀▄▀▀█████████▀▀▄▀▀
     ▀▀▄▀▀███▀▀▄▀▀
        ▀▀▄▄▄▀▀

       ▄▄▄▄▄▄▄
   ▄▄▀▀       ▀▀▄▄
  █               █ ▄
 █   █▀▄ ▀█▀ ▀█▀   █ ▀▄
 █   █▀▄  █   █    █  ▀▄
  █  ▀▀   ▀   ▀   █    █
▄▀ ▄▄           ▄▀    ▄▀
 ▀▀  ▀▀▄▄▄▄▄▄▄▀▀      ▀▄
        ▀▄▄      ▄▄▀▀▄▄▀
           ▀▀▀▀▀▀

                      ▄▄▄
  ▄█▄              ▄███████▄
  ▀████▄▄         ██████▀██████▀
    ▀▀▀████▄▄     ███████████▀
    ▀██▄███████▄▄███████████
     ▄▄▄▀██████████████████
      ▀████████████████████
▀█▄▄     ▀████████████████
  ▀████████████████▀█████
    ▀████████████▀▄▄███▀
       ▀▀██████████▀▀
           ▀▀▀▀▀

               ▄▄   ▄▄
              ▄▀ ▀▀█  █
             ▄▀     ▀▀
         ▄▄▄▄█▄
     ▄█▀▀▀▀▀▀▀▀▀▀█▄
 ▄▀▄▀              ▀▄▀▄
█  █   ▄█▄    ▄█▄   █  █
 ▀█    ▀█▀    ▀█▀    █▀
  █                  █
   █   ▀▄      ▄▀   █
    ▀▄   ▀▀▀▀▀▀   ▄▀
      ▀▀▄▄▄▄▄▄▄▄▀▀

   ▄▄████████████████████▄▄
 ▄██████████████████████████▄
▄████████████████████████████▄
██████████ ▀▀█████████████████
██████████     ▀▀█████████████
██████████         ▀▀█████████
██████████         ▄▄█████████
██████████     ▄▄█████████████
██████████ ▄▄█████████████████
▀████████████████████████████▀
 ▀██████████████████████████▀
   ▀▀████████████████████▀▀

   ▄▄███████████████▄▄
 ▄██▀▀             ▀▀██▄
▄██              ▄▄   ██▄
██        ▄▄▄▄▄  ▀▀    ██
██      ▄▀     ▀▄      ██
██     █         █     ██
██     █         █     ██
██      ▀▄     ▄▀      ██
██        ▀▀▀▀▀        ██
▀██                   ██▀
 ▀██▄▄             ▄▄██▀
   ▀▀███████████████▀▀

   ▄▄███████████████▄▄
 ▄█████████████████████▄
▄██████████████▀▀███████▄
████████████▀▀    ███████
█████████▀▀   ▄   ███████
██████▀▀     █    ███████
████▀       █     ███████
█████▄▄   ▄█      ███████
████████ ██▄      ███████
▀████████ ▀▄███▄▄███████▀
 ▀█████████████████████▀
   ▀▀███████████████▀▀

  ▄▄███████████████▄▄
 █████████████████████
███████████████████████
███████████▀    ███████
██████████  ▄██████████
██████████  ███████████
████████      ▄████████
██████████  ███████████
██████████  ███████████
██████████  ███████████
 █████████████████████
  ▀▀███████████████▀▀

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