Contract
The Contract object represents an individual smart contract deployed on the blockchain and contains comprehensive details about the smart contract.
Schema Definition
type Contract {
address: String!
assetType: AssetType!
isERC20: Boolean!
isERC721: Boolean!
isERC1155: Boolean!
createdAt: Time
createdBlock: UInt64
decimals: Int
name: String
symbol: String
holders: UInt64
tokens(
first: Int = 10
skip: Int = 0
where: ContractTokenFilter
orderBy: TokenOrderBy
orderDirection: Ordering
): ContractTokenList!
}
Fields
| Field | Type | Description |
|---|---|---|
address | String! non-null scalar | The blockchain address of the deployed contract. |
assetType | AssetType! non-null enum | The type of assets managed by this contract. |
isERC20 | Boolean! non-null scalar | Indicates whether the contract implements the ERC-20 fungible token standard. |
isERC721 | Boolean! non-null scalar | Indicates whether the contract implements the ERC-721 non-fungible token (NFT) standard. |
isERC1155 | Boolean! non-null scalar | Indicates whether the contract implements the ERC-1155 multi-token standard. |
createdAt | Time scalar | The timestamp when the contract was deployed to the blockchain. |
createdBlock | UInt64 scalar | The block number at which the contract was created/deployed. |
decimals | Int scalar | The number of decimal places used by the token (relevant for ERC-20 tokens). |
name | String scalar | The human-readable name of the contract. |
symbol | String scalar | The ticker symbol of the contract. |
holders | UInt64 scalar | The total number of unique addresses that hold tokens from this contract. |
tokens | ContractTokenList! non-null object | An array of ContractToken objects representing tokens managed by this contract. |
Arguments
These arguments control how tokens are retrieved when querying the tokens field which returns a ContractTokenList object.
| Argument | Type | Description |
|---|---|---|
first | Int = 10 scalar | Maximum number of tokens to retrieve per page. Maximum value is 100. |
skip | Int = 0 scalar | Number of tokens to bypass before assembling the page. Set to the first value from the previous page for offset pagination. |
where | ContractTokenFilter input | Specifies subsets of token data within a contract to be retrieved. |
orderBy | TokenOrderBy enum | Sets how the list of tokens is ordered. |
orderDirection | Ordering enum | Sets the direction in which the list of tokens is ordered. |
Returned By
contract query
Member Of
AssetTransaction object ● Balance object ● ContractList object ● Token object