Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

How to get NFT owners by its contract address

Step 1: Setup Moralis

Read the article Setting Up Moralis: Getting Started and make sure to finish all the steps. Only after that you can go ahead to complete this guide.

Step 2: Get All NFTs owners by a contract address

In order to get all the NFTs owners by a contract address, Moralis provides you with a getNFTOwners endpoint to do so.

Here you'll need two parameters: address and chain.

Once you've obtained both the address and chain, you can copy the following code:

const Moralis = require("moralis").default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");

const runApp = async () => {
await Moralis.start({
apiKey: "YOUR_API_KEY",
// ...and any other configuration
});

const address = "0xd4e4078ca3495DE5B1d4dB434BEbc5a986197782";

const chain = EvmChain.ETHEREUM;

const response = await Moralis.EvmApi.nft.getNFTOwners({
address,
chain,
});

console.log(response.toJSON());
};

runApp();

Step 3: Run the script

To run the script, enter the following command:

node index.js

In your terminal, you should see the following JSON response:

{
"total": 512,
"page": 1,
"page_size": 100,
"cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21QYXJhbXMiOnsidG9rZW5BZGRyZXNzIjoiMHhkNGU0MDc4Y2EzNDk1ZGU1YjFkNGRiNDM0YmViYzVhOTg2MTk3NzgyIn0sImtleXMiOlsiMTY1MzUxNDU1OS4yNDIiXSwid2hlcmUiOnsidG9rZW5fYWRkcmVzcyI6IjB4ZDRlNDA3OGNhMzQ5NWRlNWIxZDRkYjQzNGJlYmM1YTk4NjE5Nzc4MiJ9LCJsaW1pdCI6MTAwLCJvZmZzZXQiOjAsIm9yZGVyIjpbXSwidG90YWwiOjUxMiwicGFnZSI6MSwidGFpbE9mZnNldCI6MSwiaWF0IjoxNjY2ODAzNDg2fQ.i2E2SDeatbnmmxe3Qbhh86jd_aWypQKs8Svpr5disZ4",
"result": [
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "17",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791552",
"block_number_minted": "7516983",
"token_hash": "98e881f3d1052b7ca90fb91b898baa0f",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,.........#..#..O..##..#..O..##.OO.##..O..#..##..O..#..#.........%0A.......#...............O...#...##...#...O...............#.......%0A.......O#.................O#........#O.................#O.......%0A.........#O..........#........O..O........#..........O#.........%0A.......................#..OO...OO...OO..#.......................%0A..........#...#................##................#...#..........%0A........O#.....#.......O#..............#O.......#.....#O........%0A.#O........#O....#.........#........#.........#....O#........O#.%0A..#...O......O......#......#...OO...#......#......O......O...#..%0A#..#..#..#..O.#..#..#..#..O.#O.##.O#.O..#..#..#..#.O..#..#..#..#%0A...O.#..............#......O........O......#..............#.O...%0A.......#.........#............................#.........#.......%0A#......O.O...........O........O..O........O...........O.O......#%0A........O....O........#....O........O....#........O....O........%0A.....#...#.............#...#........#...#.............#...#.....%0AO.....#........#....O...O.....#..#.....O...O....#........#.....O%0A...................OOO.....OO......OO.....OOO...................%0A.......#.#.#........O....#............#....O........#.#.#.......%0A#..............................................................#%0A#...............O........O.O........O.O........O...............#%0A........###....OOO.........###....###.........OOO....###........%0A...#........O...O....#..#.....O..O.....#..#....O...O........#...%0A#............#.............O........O.............#............#%0A.O..#.O..#....#..................................#....#..O.#..O.%0A......#........O.....#..O.....#..#.....O..#.....O........#......%0AO................#.O.....#.O........O.#.....O.#................O%0A..O.O....O.................#.O....O.#.................O....O.O..%0A.##.O..##.O..O#.O..O#.O..O#.O#.OO.#O.#O..O.#O..O.#O..O.##..O.##.%0A#........#......O...#......O...##...O......#...O......#........#%0A#........O..........#.....O#........#O.....#..........O........#%0A...O........O..#.....O..#.....O..O.....#..O.....#..O........O...%0AO#..O#..O#.................O#..OO..#O.................#O..#O..#O%0AO#..O#..O#.................O#..OO..#O.................#O..#O..#O%0A...O........O..#.....O..#.....O..O.....#..O.....#..O........O...%0A#........O..........#.....O#........#O.....#..........O........#%0A#........#......O...#......O...##...O......#...O......#........#%0A.##.O..##.O..O#.O..O#.O..O#.O#.OO.#O.#O..O.#O..O.#O..O.##..O.##.%0A..O.O....O.................#.O....O.#.................O....O.O..%0AO................#.O.....#.O........O.#.....O.#................O%0A......#........O.....#..O.....#..#.....O..#.....O........#......%0A.O..#.O..#....#..................................#....#..O.#..O.%0A#............#.............O........O.............#............#%0A...#........O...O....#..#.....O..O.....#..#....O...O........#...%0A........###....OOO.........###....###.........OOO....###........%0A#...............O........O.O........O.O........O...............#%0A#..............................................................#%0A.......#.#.#........O....#............#....O........#.#.#.......%0A...................OOO.....OO......OO.....OOO...................%0AO.....#........#....O...O.....#..#.....O...O....#........#.....O%0A.....#...#.............#...#........#...#.............#...#.....%0A........O....O........#....O........O....#........O....O........%0A#......O.O...........O........O..O........O...........O.O......#%0A.......#.........#............................#.........#.......%0A...O.#..............#......O........O......#..............#.O...%0A#..#..#..#..O.#..#..#..#..O.#O.##.O#.O..#..#..#..#.O..#..#..#..#%0A..#...O......O......#......#...OO...#......#......O......O...#..%0A.#O........#O....#.........#........#.........#....O#........O#.%0A........O#.....#.......O#..............#O.......#.....#O........%0A..........#...#................##................#...#..........%0A.......................#..OO...OO...OO..#.......................%0A.........#O..........#........O..O........#..........O#.........%0A.......O#.................O#........#O.................#O.......%0A.......#...............O...#...##...#...O...............#.......%0A.........#..#..O..##..#..O..##.OO.##..O..#..##..O..#..#.........%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:48:25.721Z",
"last_metadata_sync": "2022-08-04T16:48:58.389Z",
"minter_address": null
},
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "23",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791549",
"block_number_minted": "7516996",
"token_hash": "3c1ad6384b0bea044ff67ca1b949f6d9",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,..OO.......O........................................O.......OO..%0A...O......O....O......O..................O......O....O......O...%0AO.........O..........O......O..OO..O......O..........O.........O%0AOO....O..................................................O....OO%0A................................................................%0A......O....O....O....O....O..........O....O....O....O....O......%0A...O.OO........O.........O............O.........O........OO.O...%0A.......OO...O....O....O..................O....O....O...OO.......%0A.......O................................................O.......%0A................................................................%0A.OO........OO........OO........OO........OO........OO........OO.%0AO....O....O....O....O....O....O..O....O....O....O....O....O....O%0A.......O..O..O......O..O..O..........O..O..O......O..O..O.......%0A............O....O...OOO..OOO..OO..OOO..OOO...O....O............%0A..............................O..O..............................%0A.O....O....O.............O....O..O....O.............O....O....O.%0A.....O....................................................O.....%0A.......O.....O....O....OO....O....O....OO....O....O.....O.......%0A.................O............................O.................%0A......................O........OO........O......................%0A...........OO............OO..........OO............OO...........%0A..O..O....O..O...............O....O...............O..O....O..O..%0A.O.....O..O..O.....O........O..OO..O........O.....O..O..O.....O.%0A............OO...O............................O...OO............%0A.................O..........O......O..........O.................%0A......O....O...O....O........O....O........O....O...O....O......%0A.....O......OO......O......OO......OO......O......OO......O.....%0A.............O............O..........O............O.............%0A..O..........O........O.O.O..........O.O.O........O..........O..%0A.................O...O...O...O....O...O...O...O.................%0A...........O..OO...............OO...............OO..O...........%0A..O.......O..O.....O..O.......O..O.......O..O.....O..O.......O..%0A..........O..O.......O........O..O........O.......O..O..........%0A...........OOO..............O..OO..O..............OOO...........%0A.O...O...O............................................O...O...O.%0A..O.O..........O..........O...O..O...O..........O..........O.O..%0AO...........O......O.....O............O.....O......O...........O%0A......O......OO......O......O......O......O......OO......O......%0A....O......O.O....O........O........O........O....O.O......O....%0A.....O...O..........O...O..............O...O..........O...O.....%0A...............OOO.OO......................OO.OOO...............%0A.......O..O..........................................O..O.......%0A..........O..O....O.......O....OO....O.......O....O..O..........%0A...........OO..........OO..............OO..........OO...........%0AO........O........O....O...O........O...O....O........O........O%0AO................O.O.O...O............O...O.O.O................O%0A.......O....O....OO....O................O....OO....O....O.......%0A.....OO.......O........O................O........O.......OO.....%0A......O....O...........O....O......O....O...........O....O......%0A..O......O......O.........O..........O.........O......O......O..%0A.....................O...OO...OOOO...OO...O.....................%0A....O..O.........O..O......O..O..O..O......O..O.........O..O....%0A...............O....O....O....O..O....O....O....O...............%0AO........OO..........OO........OO........OO..........OO........O%0A....O....OO...O....O....O....O....O....O....O....O...OO....O....%0A................................................................%0A..O....O....O....O....O..................O....O....O....O....O..%0A....O.O........OO.........O..........O.........OO........O.O....%0A................O.......O....O....O....O.......O................%0A......O..O..O............O..O......O..O............O..O..O......%0AO..............................................................O%0A.......O......O.............O......O.............O......O.......%0A.............................O....O.............................%0A...O......O.......OO.......O........O.......OO.......O......O...%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:49:04.958Z",
"last_metadata_sync": "2022-08-04T16:49:10.970Z",
"minter_address": null
},
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "40",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791547",
"block_number_minted": "7517045",
"token_hash": "2cc632796f119c21fb4608a931e96c26",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,................................................................%0A................................................................%0A......#..#.............#................#.............#..#......%0A.............#....................................#.............%0A..............#.#..............##..............#.#..............%0A........#...........#..........##..........#...........#........%0A..#....................#...#........#...#....................#..%0A........#............#....................#............#........%0A.....#.#.#............................................#.#.#.....%0A..#.....#.....................#..#.....................#.....#..%0A................................................................%0A.............#.#.#............................#.#.#.............%0A...................#........#......#........#...................%0A...#.......#......#..........................#......#.......#...%0A....#......................................................#....%0A...........#........................................#...........%0A....#................#....................#................#....%0A...........#.....#............................#.....#...........%0A.............#......#..#...#.##..##.#...#..#......#.............%0A............#......................................#............%0A.....#............#......#............#......#............#.....%0A.......#........#........#............#........#........#.......%0A................................................................%0A..#...#...........#..........................#...........#...#..%0A...........................#........#...........................%0A....................##....................##....................%0A.............................#....#.............................%0A......#...........#.....#..#........#..#.....#...........#......%0A............#......................................#............%0A..................#.......#..........#.......#..................%0A.........#........#..........................#........#.........%0A....##....................................................##....%0A....##....................................................##....%0A.........#........#..........................#........#.........%0A..................#.......#..........#.......#..................%0A............#......................................#............%0A......#...........#.....#..#........#..#.....#...........#......%0A.............................#....#.............................%0A....................##....................##....................%0A...........................#........#...........................%0A..#...#...........#..........................#...........#...#..%0A................................................................%0A.......#........#........#............#........#........#.......%0A.....#............#......#............#......#............#.....%0A............#......................................#............%0A.............#......#..#...#.##..##.#...#..#......#.............%0A...........#.....#............................#.....#...........%0A....#................#....................#................#....%0A...........#........................................#...........%0A....#......................................................#....%0A...#.......#......#..........................#......#.......#...%0A...................#........#......#........#...................%0A.............#.#.#............................#.#.#.............%0A................................................................%0A..#.....#.....................#..#.....................#.....#..%0A.....#.#.#............................................#.#.#.....%0A........#............#....................#............#........%0A..#....................#...#........#...#....................#..%0A........#...........#..........##..........#...........#........%0A..............#.#..............##..............#.#..............%0A.............#....................................#.............%0A......#..#.............#................#.............#..#......%0A................................................................%0A................................................................%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:48:48.145Z",
"last_metadata_sync": "2022-08-04T16:49:09.473Z",
"minter_address": null
},
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "66",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791513",
"block_number_minted": "7517107",
"token_hash": "6f0447e9b75382f98f9d773890e393aa",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,.....#.|+-.............#|+-+........+-+|#.............-+|.#.....%0A.+.....+...+.+...+.+.....+.....--.....+.....+.+...+.+...+.....+.%0A..........+-+###............+-+##+-+............###+-+..........%0A...|..-.|..|..-.|..-....|..+.|....|.+..|....-..|.-..|..|.-..|...%0A.....|....-|....-#...+||....-......-....||+...#-....|-....|.....%0A#...|..#+..#+..-...-...|..#...|..|...#..|...-...-..+#..+#..|...#%0A...-...|..|...#..+...#..-......--......-..#...+..#...|..|...-...%0A|+...#|+.....|+....|+.....|..........|.....+|....+|.....+|#...+|%0A+..|.+....+....#....|....|.+..|..|..+.|....|....#....+....+.|..+%0A-...............###||||-++............++-||||###...............-%0A..+.-.|.+.-.|.|.#.#............++............#.#.|.|.-.+.|.-.+..%0A.+-||#........+-|#|#.........-|##|-.........#|#|-+........#||-+.%0A..+..+....|..-....#..+..+.#..-....-..#.+..+..#....-..|....+..+..%0A.+#....|....-....-#...+#....|......|....#+...#-....-....|....#+.%0A..#-..#+..|+..|+..|...|...-...-..-...-...|...|..+|..+|..+#..-#..%0A..#..-..#..-..+...|..-...#..|..++..|..#...-..|...+..-..#..-..#..%0A...|-....##|......-+....||-..........-||....+-......|##....-|...%0A.+..#.+..#.#.-....-....|.+..#.+..+.#..+.|....-....-.#.#..+.#..+.%0A.........##|##||--.+-++..................++-+.--||##|##.........%0A.+.-.-.|.|.#....+.+.-.|.|..............|.|.-.+.+....#.|.|.-.-.+.%0A.......+||........--##.......+||||+.......##--........||+.......%0A....+.#..|..+..-..+.#.....|..-....-..|.....#.+..-..+..|..#.+....%0A....|....|...+|...+|...+|...+|....|+...|+...|+...|+...|....|....%0A#...||...-...#...|....+...+...-..-...+...+....|...#...-...||...#%0A|..|..-..+..+...|..|..|..-..-..--..-..-..|..|..|...+..+..-..|..|%0A++......|+.....#|+......-......##......-......+|#.....+|......++%0A-....#.|....#.-.-....|.+......+..+......+.|....-.-.#....|.#....-%0A+..+....+..............................................+....+..+%0A..+.-........|.|.#....+.-..............-.+....#.|.|........-.+..%0A..-|.......--.......+-|.......----.......|-+.......--.......|-..%0A..+..|..|..|..-..+..|..-..+..-....-..+..-..|..+..-..|..|..|..+..%0A.-#...-...+#...+....|...-#...-....-...#-...|....+...#+...-...#-.%0A..#+...|...#-...|+...|...#....+..+....#...|...+|...-#...|...+#..%0A....+..+..-........+..+..-..|..++..|..-..+..+........-..+..+....%0A....-+.......--+.......-+..............+-.......+--.......+-....%0A......|.-.|......#.-.+....|.|.|..|.|.|....+.-.#......|.-.|......%0A................................................................%0A.-.-.#......#....-.-....+.|.|......|.|.+....-.-....#......#.-.-.%0A.....+||......+#......-|......-##-......|-......#+......||+.....%0A....+..+..+..-............+..+....+..+............-..+..+..+....%0A#..+....|...|#..-...-|...|...-....-...|...|-...-..#|...|....+..#%0A-+...-+...-+...-+...-....-....+..+....-....-...+-...+-...+-...+-%0A|..-..#....-..+..|..#..|....+..||..+....|..#..|..+..-....#..-..|%0A-.........||........##--................--##........||.........-%0A...........#.+.+..........-.-.+..+.-.-..........+.+.#...........%0A++--.-+||##.##....................................##.##||+-.--++%0A..-.#..+.#.#..+.|....|....-.#..++..#.-....|....|.+..#.#.+..#.-..%0A.+-.....+##.....-|....+-.......||.......-+....|-.....##+.....-+.%0A..#...-.#...-..|...+..-..#...+....+...#..-..+...|..-...#.-...#..%0A..#...#..........+...+...+...-....-...+...+...+..........#...#..%0A..#-....-....|....#+...#-....-....-....-#...+#....|....-....-#..%0A.+..|..|....-..-..#....|..#....--....#..|....#..-..-....|..|..+.%0A.....#|+.........#.#|-+........##........+-|#.#.........+|#.....%0A.+..............#.#.|.-.+...|.-..-.|...+.-.|.#.#..............+.%0A................###..........................###................%0A........-....-.#+.|....|....-......-....|....|.+#.-....-........%0A.....#.....+|....+|.....+|....+||+....|+.....|+....|+.....#.....%0A|+..|......|..#-..+..#+..|..|......|..|..+#..+..-#..|......|..+|%0A#..+...#...#......-...-..+#..+....+..#+..-...-......#...#...+..#%0A|+....|.....|....#......+....-+..+-....+......#....|.....|....+|%0A+....+.......-....-..-.+..-....++....-..+.-..-....-.......+....+%0A-............###---............##............---###............-%0A....+.+...+.+...+.+...+...-..........-...+...+.+...+.+...+.+....%0A..-+|#|...........+.-|-#................#-|-.+...........|#|+-..%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:48:22.457Z",
"last_metadata_sync": "2022-08-04T16:48:30.734Z",
"minter_address": null
},
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "70",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791507",
"block_number_minted": "7517120",
"token_hash": "d24a56d874a7c44ff8f5986e53dc93da",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,...................../....................\\.....................%0A.............\\\\../..........\\../\\../..........\\..//.............%0A..\\./..\\....\\....\\............................/..../..../..\\./..%0A......................./..../......\\....\\.......................%0A../...\\...\\.............\\...\\....../.../............./.../...\\..%0A......\\...\\.../../............................\\..\\.../.../......%0A....\\\\....\\\\....\\\\..../\\..../\\..../\\..../\\....//....//....//....%0A..\\......./......./...\\......./..\\......./...\\.......\\......./..%0A.........././.\\./..............................\\./.\\.\\..........%0A........../..........................................\\..........%0A....\\\\\\///...........//..................\\\\...........\\\\\\///....%0A......\\....../......./..\\............../..\\.......\\....../......%0A..\\...../..........\\.....\\...../\\...../...../..........\\...../..%0A.\\........./.../.../........./....\\.........\\...\\...\\........./.%0A.\\.../..\\.................\\.../..\\.../................./..\\.../.%0A............./.....\\/.....\\........../.....\\/.....\\.............%0A......\\./.........././..\\.\\.........././..\\.\\..........\\./......%0A./\\../\\............../\\...\\........../.../\\............../\\../\\.%0A......./................................................\\.......%0A............\\/.\\/............/....\\............\\/.\\/............%0A.............../....\\....\\............/..../....\\...............%0A/.........//....//....//....//....\\\\....\\\\....\\\\....\\\\.........\\%0A....../\\../......\\.../........./\\.........\\.../......\\../\\......%0A.../..\\............../..\\............../..\\............../..\\...%0A....\\......\\....\\......\\..../......\\..../....../..../....../....%0A............\\.......\\..../..../..\\....\\..../......./............%0A..............\\\\\\\\............................////..............%0A................................................................%0A.\\./\\./............../../..............\\..\\..............\\./\\./.%0A......\\....../....././....................\\.\\.....\\....../......%0A......./....../........../.....\\/.....\\..........\\......\\.......%0A./........../........./.......\\../.......\\.........\\..........\\.%0A.\\..........\\.........\\......./..\\......./........./........../.%0A.......\\......\\..........\\...../\\...../........../....../.......%0A....../......\\.....\\.\\...................././...../......\\......%0A./.\\/.\\..............\\..\\............../../............../.\\/.\\.%0A................................................................%0A..............////............................\\\\\\\\..............%0A............/......./....\\....\\../..../....\\.......\\............%0A..../....../..../....../....\\....../....\\......\\....\\......\\....%0A...\\../..............\\../..............\\../..............\\../...%0A......\\/..\\....../...\\.........\\/........./...\\....../..\\/......%0A\\.........\\\\....\\\\....\\\\....\\\\....//....//....//....//........./%0A...............\\..../..../............\\....\\..../...............%0A............/\\./\\............\\..../............/\\./\\............%0A.......\\................................................/.......%0A.\\/..\\/..............\\/.../..........\\...\\/..............\\/..\\/.%0A....../.\\..........\\.\\.././..........\\.\\.././........../.\\......%0A.............\\...../\\...../..........\\...../\\...../.............%0A./...\\../................./...\\../...\\.................\\../...\\.%0A./.........\\...\\...\\.........\\..../........./.../.../.........\\.%0A../.....\\........../...../.....\\/.....\\.....\\........../.....\\..%0A....../......\\.......\\../..............\\../......./......\\......%0A....///\\\\\\...........\\\\..................//...........///\\\\\\....%0A..........\\........................................../..........%0A..........\\.\\./.\\............................../.\\././..........%0A../.......\\.......\\.../.......\\../.......\\.../......./.......\\..%0A....//....//....//....\\/....\\/....\\/....\\/....\\\\....\\\\....\\\\....%0A....../.../...\\..\\............................/../...\\...\\......%0A..\\.../.../............./.../......\\...\\.............\\...\\.../..%0A.......................\\....\\....../..../.......................%0A../.\\../..../..../............................\\....\\....\\../.\\..%0A.............//..\\........../..\\/..\\........../..\\\\.............%0A.....................\\..................../.....................%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:48:23.713Z",
"last_metadata_sync": "2022-08-04T16:48:29.685Z",
"minter_address": null
},
{
"token_address": "0xd4e4078ca3495de5b1d4db434bebc5a986197782",
"token_id": "72",
"owner_of": "0x8e232860171762f6ff2d22d1fcc45af78bd3fbb5",
"block_number": "15791503",
"block_number_minted": "7517124",
"token_hash": "31e44730d35dcd4512aaf7992a78512d",
"amount": "1",
"contract_type": "ERC721",
"name": "Autoglyphs",
"symbol": "☵",
"token_uri": "data:text/plain;charset=utf-8,.........................||||-||||-||||.........................%0A.O-.....-...|.....|...O.-...O.-..-.O...-.O...|.....|...-.....-O.%0A.-.|-O|.O.....-.|..........-.O....O.-..........|.-.....O.|O-|.-.%0A..|....O..O...|.-..|..O...-....||....-...O..|..-.|...O..O....|..%0A..-............O...|O..-O...|O....O|...O-..O|...O............-..%0A..O....O....OO..O.O...O|...O|......|O...|O...O.O..OO....O....O..%0A..|....|....-..|....|....-..O.-..-.O..-....|....|..-....|....|..%0A...O.O|.|.O...........O..-.|.|-..-|.|.-..O...........O.|.|O.O...%0A.-O....|.-...O.|....-O....|.-......-.|....O-....|.O...-.|....O-.%0A........-|O......O.........--|O..O|--.........O......O|-........%0A...O...O.O|.|-..............O.O||O.O..............-|.|O.O...O...%0A.....................O...O...O....O...O...O.....................%0A.|...O-...|.|...O-...|.-...O-......-O...-.|...-O...|.|...-O...|.%0A.....O..O.-..|.........O.-..-O.||.O-..-.O.........|..-.O..O.....%0A..-|...............|O....-|-|......|-|-....O|...............|-..%0A....O.|.|........O.O.|-.......O..O.......-|.O.O........|.|.O....%0A..|-.O......O......O|......-.O|..|O.-......|O......O......O.-|..%0A.........O..-..O..-..O.........OO.........O..-..O..-..O.........%0A.|...O...........-...|..-O..|O....O|..O-..|...-...........O...|.%0A...||.........|OO.....-...O|........|O...-.....OO|.........||...%0A....O.|.-.....O.|....O.|..-....OO....-..|.O....|.O.....-.|.O....%0A........O..O|..|.O|.O|.O--.|-.|..|.-|.--O.|O.|O.|..|O..O........%0A.O.O.O.O.......-...-......|.-.|..|.-.|......-...-.......O.O.O.O.%0A....-|......-O......|O.....-|......|-.....O|......O-......|-....%0A.-..O.............-..-..|..O........O..|..-..-.............O..-.%0A|.....--...O.--...O..-...|............|...-..O...--.O...--.....|%0A|..-....|.....|....O-.|....O-......-O....|.-O....|.....|....-..|%0A|.-..O.|.-..O.-.-..|.|.-O.O.|..OO..|.O.O-.|.|..-.-.O..-.|.O..-.|%0A|O..||O.--O.--|...|..--|..-|...--...|-..|--..|...|--.O--.O||..O|%0A-.O.O..|.|.O.O..O.O..........................O.O..O.O.|.|..O.O.-%0A|-....--.OO....O|....||.......OOOO.......||....|O....OO.--....-|%0A|..|......|..|...O..O......O-.O--O.-O......O..O...|..|......|..|%0A|..|......|..|...O..O......O-.O--O.-O......O..O...|..|......|..|%0A|-....--.OO....O|....||.......OOOO.......||....|O....OO.--....-|%0A-.O.O..|.|.O.O..O.O..........................O.O..O.O.|.|..O.O.-%0A|O..||O.--O.--|...|..--|..-|...--...|-..|--..|...|--.O--.O||..O|%0A|.-..O.|.-..O.-.-..|.|.-O.O.|..OO..|.O.O-.|.|..-.-.O..-.|.O..-.|%0A|..-....|.....|....O-.|....O-......-O....|.-O....|.....|....-..|%0A|.....--...O.--...O..-...|............|...-..O...--.O...--.....|%0A.-..O.............-..-..|..O........O..|..-..-.............O..-.%0A....-|......-O......|O.....-|......|-.....O|......O-......|-....%0A.O.O.O.O.......-...-......|.-.|..|.-.|......-...-.......O.O.O.O.%0A........O..O|..|.O|.O|.O--.|-.|..|.-|.--O.|O.|O.|..|O..O........%0A....O.|.-.....O.|....O.|..-....OO....-..|.O....|.O.....-.|.O....%0A...||.........|OO.....-...O|........|O...-.....OO|.........||...%0A.|...O...........-...|..-O..|O....O|..O-..|...-...........O...|.%0A.........O..-..O..-..O.........OO.........O..-..O..-..O.........%0A..|-.O......O......O|......-.O|..|O.-......|O......O......O.-|..%0A....O.|.|........O.O.|-.......O..O.......-|.O.O........|.|.O....%0A..-|...............|O....-|-|......|-|-....O|...............|-..%0A.....O..O.-..|.........O.-..-O.||.O-..-.O.........|..-.O..O.....%0A.|...O-...|.|...O-...|.-...O-......-O...-.|...-O...|.|...-O...|.%0A.....................O...O...O....O...O...O.....................%0A...O...O.O|.|-..............O.O||O.O..............-|.|O.O...O...%0A........-|O......O.........--|O..O|--.........O......O|-........%0A.-O....|.-...O.|....-O....|.-......-.|....O-....|.O...-.|....O-.%0A...O.O|.|.O...........O..-.|.|-..-|.|.-..O...........O.|.|O.O...%0A..|....|....-..|....|....-..O.-..-.O..-....|....|..-....|....|..%0A..O....O....OO..O.O...O|...O|......|O...|O...O.O..OO....O....O..%0A..-............O...|O..-O...|O....O|...O-..O|...O............-..%0A..|....O..O...|.-..|..O...-....||....-...O..|..-.|...O..O....|..%0A.-.|-O|.O.....-.|..........-.O....O.-..........|.-.....O.|O-|.-.%0A.O-.....-...|.....|...O.-...O.-..-.O...-.O...|.....|...-.....-O.%0A.........................||||-||||-||||.........................%0A",
"metadata": null,
"last_token_uri_sync": "2022-08-04T16:48:39.222Z",
"last_metadata_sync": "2022-08-04T16:49:08.301Z",
"minter_address": null
}
]
}

Congratulations 🥳 you just got all the NFTs owners by a contract address with just a few lines of code using the Moralis NFT API!

API Reference

If you want to know more details on the endpoint and optional parameters, check out:

Support

If you face any trouble following the tutorial, feel free to reach out to our community engineers in our Discord or Forum to get 24/7 developer support.