⚡ We welcome businesses to test our enterprise-grade service

Method: POST priv_call

dropdown

方法 RPC priv_call 例如 Ethereum (ETH)

POST priv_call

方法不允许

在本地调用私有合约函数,不改变隐私组状态。

对于私有合约,priv_call 与公共合约的 eth_call 相同。

Parameters

data -

32 字节的隐私组 ID。

object -

事务调用对象。

quantity|tag -

表示块编号或字符串标记最新、最早或待定之一的整数,如块参数中所述。

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_call",
"params": [null, null, null],
"id": "getblock.io"}'


Response

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