public Eth(RpcClient client) : base(client) { this.Client = client; DeployContract = new DeployContract(client); Accounts = new EthAccounts(client); CoinBase = new EthCoinBase(client); GasPrice = new EthGasPrice(client); GetBalance = new EthGetBalance(client); GetCode = new EthGetCode(client); GetStorageAt = new EthGetStorageAt(client); ProtocolVersion = new EthProtocolVersion(client); Sign = new EthSign(client); Syncing = new EthSyncing(client); Transactions = new EthTransactionsService(client); Filters = new EthFilterService(client); Blocks = new EthBlockService(client); Uncles = new EthUncleService(client); Mining = new EthMiningService(client); Compile = new EthCompilerService(client); this.DefaultBlock = BlockParameter.CreateLatest(); }
public Eth(RpcClient client):base(client) { this.Client = client; DeployContract = new DeployContract(client); Accounts = new EthAccounts(client); CoinBase = new EthCoinBase(client); GasPrice = new EthGasPrice(client); GetBalance = new EthGetBalance(client); GetCode = new EthGetCode(client); GetStorageAt = new EthGetStorageAt(client); ProtocolVersion = new EthProtocolVersion(client); Sign = new EthSign(client); Syncing = new EthSyncing(client); Transactions = new EthTransactionsService(client); Filters = new EthFilterService(client); Blocks = new EthBlockService(client); Uncles = new EthUncleService(client); Mining = new EthMiningService(client); Compile = new EthCompilerService(client); this.DefaultBlock = BlockParameter.CreateLatest(); }
public EthApiService(IClient client, ITransactionManager transactionManager) : base(client) { Client = client; ChainId = new EthChainId(client); Accounts = new EthAccounts(client); CoinBase = new EthCoinBase(client); GasPrice = new EthGasPrice(client); GetBalance = new EthGetBalance(client); GetCode = new EthGetCode(client); GetStorageAt = new EthGetStorageAt(client); ProtocolVersion = new EthProtocolVersion(client); Sign = new EthSign(client); Syncing = new EthSyncing(client); Transactions = new EthApiTransactionsService(client); Filters = new EthApiFilterService(client); Blocks = new EthApiBlockService(client); Uncles = new EthApiUncleService(client); Mining = new EthApiMiningService(client); Compile = new EthApiCompilerService(client); DefaultBlock = BlockParameter.CreateLatest(); TransactionManager = transactionManager; TransactionManager.Client = client; //Ensure is the same }
public async Task <object> ExecuteTestAsync(IClient client) { var ethGetStorageAt = new EthGetStorageAt(client); return (await ethGetStorageAt.SendRequestAsync("0x407d73d8a49eeb85d32cf465507dd71d507100c1", new HexBigInteger(2))); }
public override async Task <string> ExecuteAsync(IClient client) { var ethGetStorageAt = new EthGetStorageAt(client); return(await ethGetStorageAt.SendRequestAsync(Settings.GetContractAddress(), new HexBigInteger(1))); }
public async Task<dynamic> ExecuteTestAsync(RpcClient client) { var ethGetStorageAt = new EthGetStorageAt(client); return await ethGetStorageAt.SendRequestAsync( "0x407d73d8a49eeb85d32cf465507dd71d507100c1", new HexBigInteger(2)); }