Skip to content

Instantly share code, notes, and snippets.

@JWPapi
Created October 3, 2022 07:14
Show Gist options
  • Save JWPapi/a62e66ebe2ba14d9326f47d7e14b3ee9 to your computer and use it in GitHub Desktop.
Save JWPapi/a62e66ebe2ba14d9326f47d7e14b3ee9 to your computer and use it in GitHub Desktop.
import AnkrProvider from '@ankr.com/ankr.js';
const provider = new AnkrProvider();
export default async function handler(req,res) {
const owners = await provider.getNFTHolders({
contractAddress: '0x47749c5b970e63f3a0ed57cd6cef773e74fafe9d',
blockchain: 'polygon',
})
res.json({owners})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment