上传者: 42161450
|
上传时间: 2021-12-24 17:30:10
|
文件大小: 66KB
|
文件类型: -
智能合约验证
此api将源代码编译为字节码,并将字节码与getCode方法匹配。
范例要求
curl --request POST --data
{
"address": "0x37536bc1088010081691eec2ea6ae5c93533ed24",
"version": "v0.4.21+commit.dfe3193c",
"name": "HelloWorld",
"provider": "https://core.poa.network:443",
"optimization": 0
"sourceCode": "example"
}
范例回应
{
"verified":"no",
"error":"Contract does not exist or name does not match",