Author

Topic: Newbie in bitcoin (Read 410 times)

legendary
Activity: 3388
Merit: 3154
September 17, 2018, 08:57:17 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?

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.
newbie
Activity: 16
Merit: 1
September 16, 2018, 11:32:44 PM
#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?
newbie
Activity: 16
Merit: 1
September 16, 2018, 05:47:51 PM
#4
Thanks.

I am using WIndows 10 with 12 GB RAM with i5 8th generation. PLease suggest.
newbie
Activity: 61
Merit: 0
September 15, 2018, 04:37:47 AM
#3
If you are developing with NodeJS there are good dependencies to build great services based with a full node.
legendary
Activity: 1624
Merit: 2509
September 13, 2018, 07:34:47 AM
#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.
newbie
Activity: 16
Merit: 1
September 13, 2018, 05: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.
Jump to: