验证代理合约#
验证代理合约是否按照预期调用实现合约。
请求路径#
POST
https://web3.okx.com/api/v5/xlayer/contract/verify-proxy-contract请求参数#
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| chainShortName | String | 是 | 公链缩写符号,例如 XLAYER |
| proxyContractAddress | String | 是 | 代理合约地址 |
| expectedImplementation | String | 否 | 验证该代理合约转发调用的实现合约是否为该地址 |
响应参数#
| 参数名 | 类型 | 描述 |
|---|---|---|
| guid | String | 若提交成功会返回GUID,可根据该GUID查询验证结果 |
请求示例#
shell
curl --location --request POST 'https://web3.okx.com/api/v5/xlayer/contract/verify-proxy-contract' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--header 'Content-Type: application/json' \
--data '{
"chainShortName": "XLAYER",
"proxyContractAddress": "0xfeee12d53ddb7ce61ee467ddf7243212a953174a",
"expectedImplementation": "0x0ecbefc71524068cf18f9d4e50d787e134ee70b8"
}'
响应示例#
json
{
"code": "0",
"msg": "",
"data": [
"4f2e75682f75410f958c0a3bbf754358"
]
}
