Skip to main content

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

FieldTypeDescription
addressString! non-null scalarThe blockchain address of the deployed contract.
assetTypeAssetType! non-null enumThe type of assets managed by this contract.
isERC20Boolean! non-null scalarIndicates whether the contract implements the ERC-20 fungible token standard.
isERC721Boolean! non-null scalarIndicates whether the contract implements the ERC-721 non-fungible token (NFT) standard.
isERC1155Boolean! non-null scalarIndicates whether the contract implements the ERC-1155 multi-token standard.
createdAtTime scalarThe timestamp when the contract was deployed to the blockchain.
createdBlockUInt64 scalarThe block number at which the contract was created/deployed.
decimalsInt scalarThe number of decimal places used by the token (relevant for ERC-20 tokens).
nameString scalarThe human-readable name of the contract.
symbolString scalarThe ticker symbol of the contract.
holdersUInt64 scalarThe total number of unique addresses that hold tokens from this contract.
tokensContractTokenList! non-null objectAn 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.

ArgumentTypeDescription
firstInt = 10 scalarMaximum number of tokens to retrieve per page. Maximum value is 100.
skipInt = 0 scalarNumber of tokens to bypass before assembling the page. Set to the first value from the previous page for offset pagination.
whereContractTokenFilter inputSpecifies subsets of token data within a contract to be retrieved.
orderByTokenOrderBy enumSets how the list of tokens is ordered.
orderDirectionOrdering enumSets the direction in which the list of tokens is ordered.

Returned By

contract query

Member Of

AssetTransaction object ● Balance object ● ContractList object ● Token object