klay_getFilterChanges

Polling method for a filter, which returns an array of logs which occurred since last poll.

Parameters

Return Value

Array - Array of log objects, or an empty array if nothing has changed since last poll.

Example

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_getFilterChanges","params":["0x16"],"id":73}' http://klaytn.blockpi.network/v1/rpc/your-api-key

// Result
{
    "id":1,
    "jsonrpc":"2.0",
    "result": [{
    "logIndex": "0x1", // 1
    "blockNumber":"0x1b4", // 436