Similarityscan
Similarity detection of an address or source code.
Request Body
Name
Type
Description
```json
{
"ranks": [
{
"score": 0.9059958539307925, // Similarity score, 1 is identical
"origin": "dxsale", // The platform that the source code belongs
"file": "LiquidityGeneratorToken.sol" // The name of the file
},
{
"score": 0.8868468468468469,
"origin": "dxsale",
"file": "DxFeeToken.sol"
},
],
"contracts": [
{
"name": "IUniswapV2Factory", // The name of the contract/interface in the source code that matches
"start": 18993, // The index of the contract that the similarity starts
"end": 19745, // The index of the contract that the similarity finishes
"score": 0.9850187265917603, // Similarity score, 1 is identical
"origin": "uniswap", // The platform that the source code belongs
"file": "IUniswapV2Factory.sol" // The name of the file
},
{
"name": "IERC20",
"start": 718,
"end": 3391,
"score": 0.9611562782294489,
"origin": "oppenzeppelin",
"file": "IERC20.sol"
}
],
"source": "the source code" // the source if type="address" is applied
}
```Last updated