Check if a contract implements a specific ERC standard
GET/:network/contract/is-of-type
Check if a contract implements a specific ERC standard
Request
Path Parameters
network stringrequired
Blockchain network name or chain id
Query Parameters
token_address stringrequired
The contract address of the token.
token_type stringrequired
Possible values: [erc20
, erc721
, erc777
, erc1155
]
Check for token type (erc20, erc721, erc777, erc1155)
projectId stringrequired
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
Contract type check completed successfully.
- application/json
- Schema
- Example (from schema)
Schema
network_name stringrequired
The blockchain network name
chain_id numberrequired
The chain ID of the network.
token_address stringrequired
The contract address being checked
type_checked stringrequired
The ERC standard being checked (erc20, erc721, erc1155, erc777)
is_of_type booleanrequired
Whether the contract implements the specified ERC standard
{
"network_name": "eth-mainnet",
"chain_id": 1,
"token_address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"type_checked": "erc20",
"is_of_type": true
}
Invalid network name or contract address.
Loading...