Get Contract Verification Results#

After submitting the source code verification, you can query the result with the GUID returned.

Request Path#

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

Request Parameters#

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

Response Parameters#

ParameterTypeDescription
resultStringContract source code verification result Success,Fail,Pending

Request Example#

shell
curl --location --request POST 'https://web3.okx.com/api/v5/xlayer/contract/check-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":"eb5c06099d3841359d398541166343fe"
}'

Response Example#

json
{
    "code": "0",
    "msg": "",
    "data": [
        "Success"
    ]
}