These are chat archives for Nethereum/Nethereum

8th
Apr 2018
JEN
@chukwuemekanweke
Apr 08 2018 07:10
Hey @juanfranblanco , Thanks so much for this library. So I want to get all the transfer events for a contract. Tried creating filters but that seems to not be supported on infura. But you said something about FilterInputs. I'd really appreciate if you can explain how to use that, probably a link to a code sample would be much appreciated. Thanks @juanfranblanco
Juan Blanco
@juanfranblanco
Apr 08 2018 11:17
@chukwuemekanweke use GetLogs instead
instead of creating a filter
it is the same you just need to pass a BlockRange
TarrahArshad
@TarrahArshad
Apr 08 2018 11:55
@juanfranblanco are u ther ? i need know Token , Presale , Crowdsale is deferent contract ? and how to work and what is requrement for refund method
JEN
@chukwuemekanweke
Apr 08 2018 12:51

@juanfranblanco thanks

 var transferEvent = contract.GetEvent("Transfer");
 var allLogs = await transferEvent.GetLogsForEvent();

The GetLogsForEvent() method takes a JArray Of Logs object which i don't know where i'd get that from

JEN
@chukwuemekanweke
Apr 08 2018 15:42
@juanfranblanco Thanks. It works now. FInally saw where that GetLogs method was.
Juan Blanco
@juanfranblanco
Apr 08 2018 21:30
@TarrahArshad I don't know
@chukwuemekanweke glad you found it