简体   繁体   中英

Nbitcoin.Transaction inaccessible due to protection level C#

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM