tackle – Nbitcoin’s BitcoinPubKeyAddress not recognizing native segwit addresses


I am making an attempt to construct a transaction utilizing Nbitcoin. Once I run this line there’s an error parsing the tackle. It runs high quality with segwit addresses beginning with a 1, however not native segwit.

Utilizing System;
Utilizing System.Textual content;
Utilizing NBitcoin;

static void Important(string[] args) {

    var pockets = new BitcoinPubKeyAddress("bc1q....", Community.Important); //throws error

Error: System.FormatException: ‘Invalid base58 information’

Is there a approach to make use of native segwit with Nbitcoin? Thanks

Supply hyperlink

Leave a reply