eth_newBlockFilter
新たなブロックが来た際に通知するためのフィルタを作成します。
ステートの変更を確認するためには、 eth_getFilterChanges を呼びます。
パラメータ
なし
戻り値
QUANTITY
フィルタ ID
サンプル
code:example.sh
// Request
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":73}'
// Result
{
"id":1,
"jsonrpc": "2.0",
"result": "0x1" // 1
}
参考
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newblockfilter
#JSON_RPC_API
Ethereum JSON RPC API 日本語リファレンス