📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

Method: POST /wallet/getcontractinfo

dropdown

方法 REST /wallet/getcontractinfo 例如 Tron (TRX)

POST /wallet/getcontractinfo

Method not allowed

从区块链查询合同的信息。 与钱包/gettract接口的区别在于,此接口不仅返回字节码,还返回合同的运行时字节码。 与字节码相比,Runtime字节码不包含构造函数和构造函数参数信息。

Parameters

value -

细绳

合同地址,转换为十六进制字符串。

visible -

布尔

可选的是可见格式(基本58检查)或十六进制的地址吗?

Request

curl --location --request POST 'https://trx.getblock.io/wallet/getcontractinfo' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{}'


Response

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