getOwner(contract, nftIdx)

Feature
Return address of the owner of the NFT with given NFT Idx

Parameters

string contract address, int | string nft Idx,

data of SuccessResponse

string owner address

example

const contractAddress = "0x07469989b2562afF5E5C3B116CD3AA5Ef814e5a1fca";
const nftIdx = 0;

// Note: an asynchronous request.
const NFTInfo = async () => {
    const info = await mitum.nft.getOwner(contractAddress, nftIdx);

    console.log(info.data);
};
NFTInfo();

// output
0x41EFb6902ADcb1214a7123b01af66b1D13b89864fca

Last updated