public AccountSignerTransactionManager(IClient rpcClient, Account account, BigInteger?chainId = null)
 {
     ChainId            = chainId;
     Account            = account ?? throw new ArgumentNullException(nameof(account));
     Client             = rpcClient;
     _transactionSigner = new AccountOfflineTransactionSigner();
 }
 public AccountSignerTransactionManager(IClient rpcClient, string privateKey, BigInteger?chainId = null)
 {
     ChainId = chainId;
     if (privateKey == null)
     {
         throw new ArgumentNullException(nameof(privateKey));
     }
     Client  = rpcClient;
     Account = new Account(privateKey);
     Account.NonceService = new InMemoryNonceService(Account.Address, rpcClient);
     _transactionSigner   = new AccountOfflineTransactionSigner();
 }
        public AccountSignerTransactionManager(IClient rpcClient, Account account, BigInteger?overridingAccountChainId = null)
        {
            if (overridingAccountChainId == null)
            {
                ChainId = account.ChainId;
            }
            else
            {
                ChainId = overridingAccountChainId;
            }

            Account            = account ?? throw new ArgumentNullException(nameof(account));
            Client             = rpcClient;
            _transactionSigner = new AccountOfflineTransactionSigner();
        }