> ## Content Index
> Fetch the complete content index at: https://blog.chainsafe.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Gaming Lifehack: How to Get The Owner of Multiple ERC-721 Tokens
- URL: https://blog.chainsafe.io/gaming-lifehack-how-to-get-the-owner-of-multiple-erc-721-tokens/
- Published: 2021-08-23T14:31:34.000Z
- Updated: 2026-05-08T23:23:29.000Z
- Author: ChainSafe Systems
- Tags: Web3 Gaming, #Import 2023-11-01 00:46, #Import 2026-11-04 06:17

Authored by **Leon Do**

### Get the owner of batch for ERC-721 tokens by using Multicall

## Question

> Is there a way to get the owner of multiple ERC-721 tokens?

## Overview

Most NFTs follow the [ERC-721 standard](https://eips.ethereum.org/EIPS/eip-721?ref=blog.chainsafe.io), which must implement certain functions such as `Transfer`, `balanceOf`, `ownerOf` etc. In this example we'll focus on `ownerOf` which returns the owner (address) of the NFT.

```
// solidity

```

```
function ownerOf(uint256 _tokenId) external view returns (address);

```

Each `_tokenId` has an owner. For example, token id 1 belongs to address 0xdD4c825203f97984e7867F11eeCc813A036089D1.

## Problem

The problem is you can only get one owner at a time. The diagram below is how a user gets the owner of each token. The user will have to send three separate requests to the blockchain to get the balance of token 1, 2 and 3.

This is ok if you have a few tokens but what if there are over 2 million tokens? Not efficient.

In short, many lines under Network Request = bad;

![](https://miro.medium.com/1*0SmuZSpqfiSoxd8V8S50NQ.png)

Code example. Notice lines `39, 48, 57` are the three separate requests.

## Solution: Multicall

*Multicall aggregates results from multiple contract constant function calls.*

Source: [https://github.com/makerdao/multicall](https://github.com/makerdao/multicall?ref=blog.chainsafe.io)

Multicall is a smart contract that calls your NFT contract. What makes this efficient is you only need one network request to the blockchain. The Multicall contract will call all of the functions in a loop and return all of the data.

![](https://miro.medium.com/1*XAewrl_BLexvFo_fAI6TrA.png)

On a technical level, the Multicall contract looks like:

Here's how to interact with the Multicall contract. In this example, we'll get the `ownerOf` multiple tokens with one request. See on line 101.

## Conclusion

Using Multicall is a clever way to get data without multiple network requests. This is especially useful for getting the `ownerOf` a list of NFTs or functions that only returns one value.

Github example: [https://github.com/leon-do/multicall-example](https://github.com/leon-do/multicall-example?ref=blog.chainsafe.io)

![](https://miro.medium.com/1*0lzSA-KA6S4-pvlSTLcgPg.png)