⚡ We welcome businesses to test our enterprise-grade service

Method: POST /wallet/getcontract

dropdown

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

POST /wallet/getcontract

Method not allowed

从区块链中查询合同的信息,包括合同的字节码,ABI,配置参数等。

Parameters

value -

细绳

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

visible -

布尔

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

Request

curl --location --request POST 'https://trx.getblock.io/wallet/getcontract' 
--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"
}