Nbitcoin.Transaction inaccessible due to protection level C#

240 Views Asked by At

Using the NBitcoin library I am trying to make a transaction, when calling

Transaction tx = new Transaction { };

I get the error Transaction.Transaction() is inaccessible due to its protection level. Renaming it to NBitcoin.Transaction results in the same thing. I've been looking but cant find a way to invoke a transaction without using the transaction function nor can I figure out why it is being protected because the same code seems to work for other people.

1

There are 1 best solutions below

0
On

I just kept downgrading until a version worked not the best fix but works for now I'll use newer methods once more of their docs are updated :p