Cant make transactions in bitcoind

0 votes

I create new VPS on vultr, then I setup bitcoind as follow: https://www.ringingliberty.com/bitcoin/

In bitcoin.conf

rpcuser=bitcoinrpc
rpcpassword=<snip>
daemon=1
rpctimeout=30
rpcport=8332
rpcallowip=my_vps_ip
gen=0
keypool=100

I use https://github.com/aceat64/EasyBitcoin-PHP

My code PHP

$account = 'string_random';

$bitcoin  = new Bitcoin();

$sign_1   = $bitcoin->getnewaddress($account);

$sign_2   = $bitcoin->getnewaddress($account);

$multisig = $bitcoin->createmultisig(1, [$sign_1, $sign_2]);

I get address from: $multisig['address'] and then used wallet blockchain.info send bitcoin to it.

But, when I login to ssh and check:

bitcoin-cli listtransactions result is []

bitcoin-cli getbalance is 0.000

Cant get transaction. Please help.

Aug 23, 2018 in Blockchain by digger
• 26,740 points
548 views

1 answer to this question.

0 votes

Fist you should encrypt your wallet:

bitcoin-cli encryptwallet 'yourpassphrasehere'

After that your bitcoind must synchronize with network(get all blocks)

Run command:

bitcoin-cli getinfo

and see how many blocks are synchronized:


{

  "version": 130200,

  "protocolversion": 70015,

  "walletversion": 60000,

  "balance": 0.00455069,

  "blocks": 451571,    < ------------------

  "timeoffset": 0,

  "connections": 1,

  "proxy": "127.0.0.1:9050",

  "difficulty": 392963262344.3704,

  "testnet": false,

  "keypoololdest": 1485982350,

  "keypoolsize": 87610,

  "unlocked_until": 0,

  "paytxfee": 0.00000000,

  "relayfee": 0.00001000,

  "errors": ""

}
answered Aug 23, 2018 by slayer
• 29,350 points

Related Questions In Blockchain

0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 1,367 views
0 votes
1 answer

How to make transactions without creating assets in multichain?

To transfer your Mycoins, you can make ...READ MORE

answered Jul 3, 2018 in Blockchain by Omkar
• 69,210 points
527 views
+1 vote
1 answer

Do we need metamask extension to make transactions on ether?

Actually, we don't need Metamask. To make ...READ MORE

answered Apr 8, 2018 in Blockchain by Perry
• 17,100 points
1,055 views
+1 vote
1 answer

How is ordering of transactions done in a block in hyperledger?

Consensus is the key concept for validating ...READ MORE

answered May 3, 2018 in Blockchain by Christine
• 15,790 points
1,041 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 26,740 points
44,017 views
0 votes
1 answer

How to get current value of bitcoin?

You can use json_decode to transform it ...READ MORE

answered Aug 20, 2018 in Blockchain by digger
• 26,740 points
584 views
0 votes
1 answer

How to create Bitcoin Address in PHP?

You need to understand that Bitcoin address and ...READ MORE

answered Aug 28, 2018 in Blockchain by Perry
• 17,100 points
5,075 views
0 votes
1 answer

How to make Geth transactions faster?

You can change the speed by the ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,350 points
1,450 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP