コード例 #1
0
 public QuorumTransactionManager(IClient rpcClient, string privateUrl, QuorumAccount account)
 {
     PrivateUrl         = privateUrl;
     Account            = account ?? throw new ArgumentNullException(nameof(account));
     Client             = rpcClient;
     _transactionSigner = new AccountOfflineTransactionSigner();
 }
コード例 #2
0
 public QuorumTransactionManager(IClient rpcClient, string privateUrl, string privateKey)
 {
     if (privateKey == null)
     {
         throw new ArgumentNullException(nameof(privateKey));
     }
     PrivateUrl           = privateUrl;
     Client               = rpcClient;
     Account              = new QuorumAccount(privateKey);
     Account.NonceService = new InMemoryNonceService(Account.Address, rpcClient);
     _transactionSigner   = new AccountOfflineTransactionSigner();
 }