I'm trying to send some btc to an address in Regtest mode:
the address where I want to send is: mjeoXvBnD4DtZumeSJEjNJfLb4RrhpbH1H
$ bitcoin-cli -regtest -rpcuser=bitcoinrpc -rpcpassword=Alice -rpcport=16591 sendtoaddress mjeoXvBnD4DtZumeSJEjNJfLb4RrhpbH1H 5.00
9caca4f88c6bf727f6e8599fc1012867561ff7ef34412ef1fc70457fadf08e0b
I generate a new block:
$ bitcoin-cli -regtest -rpcuser=bitcoinrpc -rpcpassword=Alice -rpcport=16591 generate 1
[
"5851b3adfd810480e53fbb5dab1ce4967a50f072a5a7abe054f114839ea3501e"
]
Then, I check the amount of btc inside the address:
$ bitcoin-cli -regtest -rpcuser=bitcoinrpc -rpcpassword=Alice -rpcport=16591 getreceivedbyaddress mjeoXvBnD4DtZumeSJEjNJfLb4RrhpbH1H
0.00000000
Nevertheless the transaction is well listed on listtransactions:
$ bitcoin-cli -regtest -rpcuser=bitcoinrpc -rpcpassword=Alice -rpcport=16591 listtransactions
...
{
"account" : "",
"address" : "mjeoXvBnD4DtZumeSJEjNJfLb4RrhpbH1H",
"category" : "send",
"amount" : -5.00000000,
"vout" : 1,
"fee" : -0.00001860,
"confirmations" : 1,
"blockhash" : "5851b3adfd810480e53fbb5dab1ce4967a50f072a5a7abe054f114839ea3501e",
"blockindex" : 1,
"blocktime" : 1452096896,
"txid" : "9caca4f88c6bf727f6e8599fc1012867561ff7ef34412ef1fc70457fadf08e0b",
"walletconflicts" : [
],
"time" : 1452096887,
"timereceived" : 1452096887
},
...
Is there a problem with my address?
I've generated it thanks to pybitcointools , doing:
magickey = '111' # regtest mode
priv = random_key()
addr = privkey_to_address(priv, magickey)
Thanks a lot in advance