예제 #1
0
        public static async Task <bool> IsWalletAsync(
            this IEthApiClient ethApiClient,
            string address)
        {
            var code = await ethApiClient.GetCodeAsync(address);

            return(WalletCodeVariants.Contains(code));
        }
예제 #2
0
 public DefaultGetTransactionReceiptsStrategy(
     IDetectContractStrategy detectContractStrategy,
     IEthApiClient ethApiClient,
     IParityApiClient parityApiClient)
 {
     _detectContractStrategy = detectContractStrategy;
     _ethApiClient           = ethApiClient;
     _parityApiClient        = parityApiClient;
 }
        public RootstockBlockchainService(
            IEthApiClient ethApiClient,
            IDetectContractStrategy detectContractStrategy,
            IGetTransactionReceiptsStrategy getTransactionReceiptsStrategy,
            ITryGetTransactionErrorStrategy tryGetTransactionErrorStrategy,
            Settings settings)

            : base(ethApiClient, detectContractStrategy, getTransactionReceiptsStrategy, tryGetTransactionErrorStrategy, settings)
        {
            _ethApiClient = ethApiClient;
        }
 public RootstockGetTransactionReceiptsStrategy(
     IEthApiClient ethApiClient)
 {
     _ethApiClient = ethApiClient;
 }
예제 #5
0
 public RootstockNonceService(
     IEthApiClient ethApiClient)
 {
     _ethApiClient = ethApiClient;
 }