klay_newBlockFilter

Creates a filter in the node, to notify when a new block arrives.

The execution of this API can be limited by two node configurations to manage resources of Klaytn node safely.

Parameters

None

Return Value

Example

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

// Result
{
  "jsonrpc":"2.0",
  "id":73,
  "result":"0xc2f2e8168a7e38b5d979d0f7084130ee"
}

Last updated