Links

nft_isSuspicious

Returns true if the NFT is suspicious, otherwise false.
Through nft_isSuspicious, you can know whether this NFT is suspicious or not, contractAddress and tokenId are necessary. Using this API, you could avoid some NFT frauds when purchasing some NFTs. BlockVision returns the result based on whether Opensea marks the NFT is suspicious or not.
Supported on Ethereum.

Parameters

Object - An object with the following fields(required):
  • contractAddress(hex string, required) - the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
  • tokenId(string, required) - id of the NFT.

Returns

Object - An object with the following fields:
  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(object) - an object with the following fields:
    • isSuspicious(boolean) - determine a NFT is suspicious or not.

Example

Request

curl
TypeScript
curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "nft_isSuspicious",
"params": {
"contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"tokenId": "2476"
}
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ETH_MAINNET)
// Access the BlockVision NFT API
bv.getNFTIsSuspicious({
contractAddress: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d',
tokenId: '2476'
}).then(console.log)

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": {
"isSuspicious": true
}
}
}