Bitcoin Forum
October 03, 2025, 01:11:38 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Install insight for testnet on: October 18, 2018, 04:48:44 AM
I want to install insight api, and I see the instructions at this page: https://github.com/bitpay/insight-api

It seems the instructions are for mainnet. What changes should I do to set it up for testnet?
2  Bitcoin / Development & Technical Discussion / Sample code to transfer funds using bcoin on: October 09, 2018, 12:58:42 PM
I am running bcoin node. I wanted to get a sample code to transfer bitcoins from one bitcoin account to another using javascript and bcoin. The inputs are sender's private key and address, receiver's address, and may be a change address. I will really appreciate any help.
3  Bitcoin / Development & Technical Discussion / Re: bitcore-lib to connect to my full running node on: September 29, 2018, 12:30:45 PM
Bitcoind works now and I tried but debug.log is not getting updated.

Just FYI.. here is the code I am using (only showing relevant lines)
I am wondering if birtcore-lib is really doing the transaction and connecting to some node. Or it is Insight which is doing the transaction over the wire. Insight connects to server https://test-insight.bitpay.com -In that case I need to create my own insight server.

Code:

var Insight = require('bitcore-explorers').Insight;
var bitcore = require('bitcore-lib');

var insight = new Insight("testnet");
insight.getUnspentUtxos(<fromaddress>, function (error, utxos) {
   let bitcore_transaction = new bitcore.Transaction()
                            .from(utxos)
                            .to(transaction.toaddress, transactionAmount)
                            .change(transaction.fromaddress)
                            .sign(new bitcore.PrivateKey(transactio[Suspicious link removed]ivatekey));


   insight.broadcast(bitcore_transaction, <error handler function>);
}
4  Bitcoin / Development & Technical Discussion / Re: bitcore-lib to connect to my full running node on: September 29, 2018, 10:54:49 AM
I got the following error: C:\Program Files\Bitcoin\daemon>bitcoind -debug=mempool
Error: Unable to start HTTP server. See debug log for details.

And C:\Users\shris\AppData\Roaming\Bitcoin\debug.log does not have any recent enteries. Is there someway I can show my desktop to you quick and you have a look.
5  Bitcoin / Development & Technical Discussion / Re: bitcore-lib to connect to my full running node on: September 29, 2018, 08:53:34 AM
Thank you so much, and I really appreciate your help.

I just created the bitcore-node.json file in the same folder where I have index.js of my nodejs application on windows machine. I set the rpcuser and rpcpassword as it is set in the bitcoin.conf file. I am running Bitcoin core full node on my windows box.

I want to know if there is a way if I can confirm if my code(send money transactions etc) is hitting the local running node or not? I tested them and they are running successfully as they were running earlier. I will really appreciate any pointers in this direction.

Below is my bitcore-node.json file:

{
  "network": "livenet",
  "port": 3001,
  "services": [
    "bitcoind",
    "web",
    "insight-api",
    "insight-ui",
    "web"
  ],
  "servicesConfig": {
    "bitcoind": {
      "connect": [
        {
          "rpcuser": "admin1",
          "rpcpassword": "admin2",
          "zmqpubrawtx": "tcp://127.0.0.1:8332"
        }
      ]
    }
  }
}
6  Bitcoin / Development & Technical Discussion / bitcore-lib to connect to my full running node on: September 29, 2018, 01:55:34 AM
I have written a node js application which exposes API to do two things:
1) Get balance of any address
2) Transfer funds from one address to another

I am doing it using bitcore-lib and it works great.

Now I want bitcore-lib to hit my bitcoin running node. I need help in how can I do that?

From internet forums, there are suggestions to change bitcore-node.json, but I do not find such file in bitcore-lib. I think this should be easy to do that, but I am unable to find where to make the change!
7  Bitcoin / Development & Technical Discussion / Re: Questions for developing application for bitcoin on: September 27, 2018, 12:19:23 AM
In order to get balance for an address that isn't in your wallet in Bitcoin Core, you need to import it first and do a rescan of the blockchain.

Can above be done programmatically? If yes, would it slow down the execution significantly?
8  Bitcoin / Development & Technical Discussion / Questions for developing application for bitcoin on: September 26, 2018, 09:24:23 AM
I am new to bitcoin world. I want to set up a local bitcoin full running node and develop my Node JS code talks to node, and provides web api for:
1) Getting balance for any bitcoin address
2) Doing a transfer of bitcoins from any account to any other account. (It may need private key of sender for transfer)

I tried bitcoin core earlier, but seems I can not get balance of any address there.

I will really appreciate any pointers how can I achieve this.

Thanks,
Jessica
9  Bitcoin / Development & Technical Discussion / Re: Newbie in "bitcoin core" on: September 26, 2018, 08:27:07 AM
I realised I can not get balance of any address using bitcoin core. See here: https://bitcoin.stackexchange.com/questions/59237/determine-address-balance-using-bitcoin-core?rq=1

This is weird!
10  Bitcoin / Development & Technical Discussion / Re: Newbie in "bitcoin core" on: September 25, 2018, 01:19:07 PM
From https://bitcoin.org/en/developer-examples - I am not able to locate bitcoin.conf after installing bitcoin core and running 'bitcoin core testnet' on my box.
11  Bitcoin / Development & Technical Discussion / Re: Newbie in "bitcoin core" on: September 25, 2018, 06:12:30 AM
If I use: https://github.com/bitcoinjs/bitcoinjs-lib   How would I connect it to local running node (bitcoin-core)?
12  Bitcoin / Development & Technical Discussion / Newbie in "bitcoin core" on: September 24, 2018, 03:31:49 AM
I am new to bitcoin world. I have installed bitcoin core (https://bitcoincore.org/en/download/) on windows machine and running the full node. Now I want to develop nodejs code on the same machine, using which I can get 'balance/transfer funds/create wallet/etc' which connects to my locally running full node. I will really appreciate any pointers or sample code to achieve that.

THanks,
Jessica
13  Bitcoin / Development & Technical Discussion / Re: Newbie in bitcoin on: September 17, 2018, 04:32:44 AM
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?
14  Bitcoin / Development & Technical Discussion / Re: Newbie in bitcoin on: September 16, 2018, 10:47:51 PM
Thanks.

I am using WIndows 10 with 12 GB RAM with i5 8th generation. PLease suggest.
15  Bitcoin / Development & Technical Discussion / Newbie in bitcoin on: September 13, 2018, 10:03:11 AM
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.
16  Bitcoin / Development & Technical Discussion / New to bitcoin programming on: July 17, 2018, 06:08:00 AM
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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!