I'm playing around with regtest and wanted to generate a bech32 address. My Bitcoin Core version is 0.18.0.

I ran getnewaddress "" bech32 and got an address that began with bcrt, like this one : bcrt1qs758ursh4q9z627kt3pp5yysm78ddny6txaqgw.

I'm a bit surprised, because I was thinking that testnet bech32 addresses were different, and indeed I checked this page that says it should begin with tb1...

I tried to send some tbtc to this address with Electrum and a faucet, none worked, they indeed both say address is invalid.

So what am I missing here?


Regtest and testnet are different networks. They are not compatible with each other.

Regtest is a private local network which is used solely for testing. It is primarily used for the regression tests, hence the name regtest.

Testnet is the public testing network which is very similar to mainnet, the main network. It has a different genesis block and has actual miners, DNS seeds, and nodes that you can connect to.

  • Thanks got it, but if I'm not mistaken both testnet and regtest use the same addresses' prefix? At least it is the case for legacy and P2SH addresses, and since I don't find any specific format for bech32 on the page I linked to I was also expecting Bitcoin Core will generate addresses beginning with tb1 on regtest. – Sosthène Oct 23 at 20:13
  • They use different prefixes for bech32 addresses. – Andrew Chow Oct 23 at 20:20
  • Ok, but then it means this page need to be updated en.bitcoin.it/wiki/List_of_address_prefixes I created an account on Bitcoin Wiki and see how to do it myself, thanks for your help – Sosthène Oct 24 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.