⚡ We welcome businesses to test our enterprise-grade service

/

Ethereum Classic (ETC)

etc
Ethereum Classic (ETC)

Method: POST priv_getCode

dropdown

方法 RPC priv_getCode 例如 Ethereum Classic (ETC)

POST priv_getCode

Method not allowed

在指定地址返回私人智能合约的代码。 编译的智能合同代码存储为十六进制值。

Parameters

data - 没有任何

32字节隐私组ID。

data - 没有任何

20字节合同地址。

quantity|tag - 没有任何

如块参数中所述,代表块号或最新的字符串标签之一。

Request

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


Response

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