Probably a question that has been asked a lot before, but how do I know if an address I generate with bitcoind and bitcoin-cli is SegWit?
I take the following steps to (attempt to) generate a SegWit address with the command prompt:
$ bitcoin-cli -testnet getnewaddress n2BC24zr3L5BwVazecnvPPh7NwgcV2Vfxa $ bitcoin-cli -testnet -addwitnessaddress n2BC24zr3L5BwVazecnvPPh7NwgcV2Vfxa 2NBnkQpnPitDbE3evwZXGpNpRLE51cJpdGA
The address I've generated in the above example starts with 2N, which is neither of the above. How can I know if it is still SegWit? Or did I do something wrong while trying to make a SegWit address?