Verify Proxy Contract#
Verify whether a proxy contract implements the contract as expected.
Request Path#
POST
https://web3.okx.com/api/v5/xlayer/contract/verify-proxy-contractRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainShortName | String | Yes | The abbreviated name of the blockchain network, e.g, XLAYER |
| proxyContractAddress | String | Yes | Proxy contract address |
| expectedImplementation | String | No | Verify whether the implementation contract for the proxy contract is this address |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| guid | String | A GUID is returned upon successful submission, which can be used to query the verification result |
Request Example#
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"
}'
Response Example#
json
{
"code": "0",
"msg": "",
"data": [
"4f2e75682f75410f958c0a3bbf754358"
]
}
