Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task GetData()
- {
- var web3 = new Web3("https://mainnet.infura.io");
- var contract = web3.Eth.GetContract(ABI, AxieCoreContractAddress);
- var auctionSuccesfulEvent = contract.GetEvent("AuctionSuccessful");
- try
- {
- //error : Error occurred when trying to send rpc requests(s)
- var filterAll = await auctionSuccesfulEvent.CreateFilterAsync(); //error here
- var log = await auctionSuccesfulEvent.GetAllChanges<AuctionSuccessfulEvent>(filterAll);
- }
- catch (Nethereum.JsonRpc.Client.RpcClientUnknownException ex)
- {
- Console.WriteLine(ex.Message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement