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
| Argument | Type | Description |
|---|---|---|
address | The contract address to look up (0x-prefixed, 42 characters). |
Return Type
| Type | Description |
|---|---|
IContract interface | Base interface for smart contracts deployed on chain. Extends the Address interface with contract-specific metadata including deployment information and token standards. |