Search
K
Links

Retrieve the owner of the NFT

In the rapidly evolving world of non-fungible tokens (NFTs), it is essential for creators, collectors, and traders to have the ability to verify the ownership of individual NFTs. This guide introduces you to the operation of retrieving the owner of a specific NFT, providing you with the necessary information to confirm the current holder of the unique digital asset. By leveraging this functionality, you can ensure the authenticity and provenance of the NFT, make informed decisions about buying, selling, or holding it, and navigate the dynamic NFT market with confidence. Ultimately, this operation enables you to manage your digital assets more effectively and maintain the integrity of your NFT transactions.

How to get the owner of the NFT on the Ethereum network

Use the TatumSDK (@tatumio/tatum) to get an owner of the NFT.
TypeScript
JavaScript
curl
1
// yarn add @tatumio/tatum
2
import {TatumSDK, Network, Ethereum, ResponseDto, NftTransaction} from '@tatumio/tatum'
3
4
const tatum = await TatumSDK.init<Ethereum>({network: Network.ETHEREUM})
5
6
const owner: ResponseDto<string[]> = await tatum.nft.getNftOwner({
7
tokenAddress: '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d', // replace with your collection
8
tokenId: '1'
9
})
10
11
console.log(owner.data)
1
// Install with: npm install @tatumio/tatum
2
const { TatumSDK, Network } = require("@tatumio/tatum");
3
4
(async () => {
5
try {
6
const tatum = await TatumSDK.init({ network: Network.ETHEREUM });
7
const txs = await tatum.nft.getNftOwner({
8
tokenAddress: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", // replace with your collection
9
tokenId: "1"
10
});
11
console.log(txs.data);
12
} catch (error) {
13
console.error("Error fetching NFT owner:", error);
14
}
15
})();
1
curl --location --request GET 'https://api.tatum.io/v4/data/owners?tokenAddress=0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d&tokenId=1&chain=ethereum'
Expected Response
[
"0x46efbaedc92067e6d60e84ed6395099723252496"
]

Request interface

1
interface GetTokenOwner {
2
/**
3
* Token ID
4
*/
5
tokenId: string
6
/**
7
* Token contract address
8
*/
9
tokenAddress: string
10
/**
11
* Optional page size. If not specified, the default page size is used, which is 10.
12
*/
13
pageSize?: number
14
/**
15
* Optional page number. If not specified, the first page is returned.
16
*/
17
page?: number
18
}

Response interface

1
interface ResponseDto<string[]> {
2
/**
3
* Actual payload of the response - list of the owner address
4
*/
5
data: string[]
6
/**
7
* Status of the response
8
*/
9
status: Status
10
/**
11
* In case of ERROR status, this field contains the error message and detailed description
12
*/
13
error?: ErrorWithMessage
14
}

Supported blockchain networks

Network
Support
Ethereum / Ethereum Sepolia / Ethereum Goerli BNB Smart Chain / BNB Smart Chain Testnet Celo / Celo Alfajores Polygon / Polygon Mumbai
NFTs (BAYC,...) ERC-1155 Tokens
© Tatum Technology, LLC