⚡ We welcome businesses to test our enterprise-grade service

Method: POST priv_getLogs

dropdown

方法 RPC priv_getLogs 例如 Ethereum (ETH)

POST priv_getLogs

方法不允许

返回与指定过滤器对象匹配的日志数组。

对于私有合约,priv_getLogs 与公共合约的 eth_getLogs 相同,只是没有私有合约的自动日志溢出缓存。

Parameters

data -

32 字节的隐私组 ID。

Object -

过滤器选项对象。

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "priv_getLogs",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}