you_newBlockFilter

描述:在节点中创建一个过滤器,以便当新块生成时进行通知。要检查状态是否变化, 请调用 you_getFilterChanges

return

数据类型 备注
String 过滤器编号

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "you_newBlockFilter",
    "params": []
}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x207cedb63dd7cdd68fc55c725a61e965"
}