Skip to main content
Version: 1.0

Get the NFT Contract Address

Returns a list of 20 byte Ethereum addresses of the NFT Listings contract registered in the AvN

await api.query.getNftContractAddress();
important

You can get the AVN_GATEWAY_URL here.

const AVN_API = require("avn-api");
const AVN_GATEWAY_URL = "<node_url>";
const API = new AVN_API(AVN_GATEWAY_URL);

async function main() {
await api.init();

let contractAddress = await api.query.getNftContractAddress();
console.log(contractAddress);
}

(async () => {
await main();
})();