tokenOwners

This query loads the owners of a token.

General Pattern

query{
    tokenOwners(chainId: Int!
contractAddress: String!
tokenIds: [Int!]!){
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  tokenOwners(chainId:4
  contractAddress:"0x552BeD96BFC5A7c8b3a8aD18e70630f2F33D5D89"
  tokenIds:1){
    tokenId
    owners
  }
}

Arguments

NameTypeDescriptionRequired
chainIdUUIDThe chain ID.Yes
contractAddressStringThe token contract address.Yes
tokenIdsIntegerThe token IDsYes

Fields

NameTypeDescription
TokenOwnersResponseObjectAn object that contains the TokenOwnersResponse object information, such as token ID and owners.

Example

Load the token owners by the contract address, token IDs, and chain ID: