저는 C# 및 블록 체인의 초보자입니다.QBitNinjaClient로 거래 결과를 얻을 수 없습니다.
저는 "Programming The Blockchain in C#"으로 블록 체인을 연구하고 있습니다. 나는 책 다음은이 소스 코드를 실행하려고 :
using NBitcoin;
using QBitNinja.Client;
using QBitNinja.Client.Models;
namespace NBitcoinTest1
{
class Program
{
static void Main(string[] args)
{
// Create a client
QBitNinjaClient client = new QBitNinjaClient(Network.Main);
// Parse transaction id to NBitcoin.uint256 so the client can eat it
var transactionId = uint256.Parse("f13dc48fb035bbf0a6e989a26b3ecb57b84f85e0836e777d6edf60d87a4a2d94");
// Query the transaction
GetTransactionResponse transactionResponse = client.GetTransaction(transactionId).Result;
}
}
}
을하지만 때문에 exception 작동하지 않습니다. "Method 'System.Net.Logging.get_On'메서드를 찾을 수 없습니다."라는 메시지가 표시되어 "System.Net.Logging"을 찾으려고 시도했지만 Nuget에서 "System.Net.Logging"이라는 패키지를 찾을 수 없습니다. .org.
이 문제를 어떻게 해결할 수 있습니까?
환경 : 맥 OS 시에라 10.12.6, 맥 [커뮤니티]의 비주얼 스튜디오 7.2 NBitcoin 설치로,