بوابة المطوّرين
النمط

Get Proxy Contract Verification Results#

After submitting the proxy contract verification, you can query the result with the GUID returned.

Request Path#

POST
https://web3.okx.com/api/v5/xlayer/contract/check-proxy-verify-result

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network, e.g, XLAYER
guidStringYesQuery the proxy contract verification result with the GUID returned

Response Parameters#

ParameterTypeDescription
resultStringProxy contract verification result. If the verification is successful, return the address of the implementation contract. If the verification fails, return "A corresponding implementation contract was unfortunately not detected for the proxy address."

Request Example#

shell
curl --location --request POST 'https://web3.okx.com/api/v5/xlayer/contract/check-proxy-verify-result' \
--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",
    "guid":"4f2e75682f75410f958c0a3bbf754358"
}'

Response Example#

json
{
    "code": "0",
    "msg": "The proxy's (0x826427966fb2e7edee940c5d99b7d66062faef2e) implementation contract is found at 0xd4a2dca4e03713d5bf7d2173237058466a9c1be4 and is successfully updated.",
    "data": []
}