Get Logs
eth_getLogs
eth_getLogs
Returns an array of all logs that are records of smart contract-generated events on the network and
contain valuable information about transactions and smart contract interactions that match a given filter object.
This function requires input as follows:
- URL 1 : RPC endpoint (Blockchain URL).
- ID 2 : RPC ID(Optional), used when calling multiple asynchronous RPC calls to differentiate your response data from each other.
- HttpHeaders 3 : (Optional) Additional HTTP headers that will be appended to the request.
- LogFilterObjects 4 : The filter parameters to apply.
The returned Response 5 is a struct that holds the JSON- info of the header and body of the response as well as https status code.
note
If Success is True that only means that the response from the Blockchain was successful only.
If Logs Found 6 is True that only means that the Response was successful and the Logs Data was found.
If successful, returns the Log Objects array 7 which contains the log objects.