Skip to main content

contract

Look up a smart contract by its address. Returns the appropriate contract type (Token, NFTContract, or Contract) based on detected standards. Returns null if the address is not a contract.

Schema Definition

contract(
address: AddressString!
): IContract

Arguments

ArgumentTypeDescription
address
AddressString! non-null scalar
The contract address to look up (0x-prefixed, 42 characters).

Return Type

TypeDescription
IContract interface
Base interface for smart contracts deployed on chain. Extends the Address interface with contract-specific metadata including deployment information and token standards.