- name: eth_newFilter summary: Install a log filter in the server, allowing for later polling. Registers client interest in logs matching the filter, and returns an identifier. params: - name: Filter schema: $ref: '#/components/schemas/Filter' required: true result: name: Filter identifier schema: $ref: '#/components/schemas/uint' examples: - name: eth_newFilter example params: - name: Filter value: fromBlock: '0x137d3c2' toBlock: '0x137d3c3' address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' topics: [] result: name: Filter identifier value: '0x01' - name: eth_newBlockFilter summary: Creates a filter in the node, allowing for later polling. Registers client interest in new blocks, and returns an identifier. params: [] result: name: Filter identifier schema: $ref: '#/components/schemas/uint' examples: - name: eth_newBlockFilter example params: [] result: name: Filter identifier value: '0x01' - name: eth_newPendingTransactionFilter summary: Creates a filter in the node, allowing for later polling. Registers client interest in new transactions, and returns an identifier. params: [] result: name: Filter identifier schema: $ref: '#/components/schemas/uint' examples: - name: eth_newPendingTransactionFilter example params: [] result: name: Filter identifier value: '0x01' - name: eth_uninstallFilter summary: Uninstalls a filter with given id. params: - name: Filter identifier schema: $ref: '#/components/schemas/uint' required: true result: name: Success schema: type: boolean examples: - name: eth_uninstallFilter example params: - name: Filter identifier value: '0x01' result: name: Success value: true - name: eth_getFilterChanges summary: Polling method for the filter with the given ID (created using `eth_newFilter`). Returns an array of logs, block hashes, or transaction hashes since last poll, depending on the installed filter. params: - name: Filter identifier schema: $ref: '#/components/schemas/uint' required: true result: name: Log objects schema: $ref: '#/components/schemas/FilterResults' examples: - name: eth_getFilterChanges example params: - name: Filter identifier value: '0x01' result: name: Log objects value: - logIndex: '0x0' removed: false blockNumber: '0x233' blockHash: '0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5' blockTimestamp: '0x11' transactionHash: '0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000004' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3' - logIndex: '0x0' removed: false blockNumber: '0x238' blockHash: '0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed' blockTimestamp: '0x22' transactionHash: '0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000007' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3' - name: eth_getFilterLogs summary: Returns an array of all logs matching the filter with the given ID (created using `eth_newFilter`). params: - name: Filter identifier schema: $ref: '#/components/schemas/uint' required: true result: name: Log objects schema: $ref: '#/components/schemas/FilterResults' examples: - name: eth_getFilterLogs example params: - name: Filter identifier value: '0x01' result: name: Log objects value: - logIndex: '0x0' removed: false blockNumber: '0x233' blockTimestamp: '0x11' blockHash: '0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5' transactionHash: '0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000004' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3' - logIndex: '0x0' removed: false blockNumber: '0x238' blockTimestamp: '0x22' blockHash: '0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed' transactionHash: '0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000007' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3' - name: eth_getLogs summary: Returns an array of all logs matching the specified filter. description: >- Returns all logs that match the given filter. `fromBlock` and `toBlock` bound an inclusive block range; block tags resolve against the current head block. If either bound resolves to a block number greater than the current head block, or if `fromBlock` resolves to a block number greater than `toBlock`, clients MUST return the `-32602: Invalid params` error. Clients MUST NOT clamp the range to the head block or return a partial result. params: - name: Filter schema: $ref: '#/components/schemas/Filter' required: true errors: - code: 4444 message: Pruned history unavailable result: name: Log objects schema: $ref: '#/components/schemas/FilterResults' examples: - name: eth_getLogs example params: - name: Filter value: fromBlock: '0x137d3c2' toBlock: '0x137d3c3' address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' topics: [] result: name: Log objects value: - logIndex: '0x0' removed: false blockNumber: '0x233' blockTimestamp: '0x11' blockHash: '0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5' transactionHash: '0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000004' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3' - logIndex: '0x0' removed: false blockNumber: '0x238' blockTimestamp: '0x22' blockHash: '0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed' transactionHash: '0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058' transactionIndex: '0x0' address: '0x42699a7612a82f1d9c36148af9c77354759b210b' data: '0x0000000000000000000000000000000000000000000000000000000000000007' topics: - '0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3'