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
Name | Type | Description | Required |
---|---|---|---|
chainId | UUID | The chain ID. | Yes |
contractAddress | String | The token contract address. | Yes |
tokenIds | Integer | The token IDs | Yes |
Fields
Name | Type | Description |
---|---|---|
TokenOwnersResponse | Object | An 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: