Skip to main content
Version: 2.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();
})();