The network identifier for which to fetch metadata.
A promise that resolves to the network metadata.
import { NETWORK_TYPE, getMetadata } from "@akashnetwork/akashjs/build/network";
async function displayNetworkMetadata() {
try {
const metadata = await getMetadata(NETWORK_TYPE.MAINNET);
console.log("Network Metadata:", metadata);
} catch (error) {
console.error("Error fetching network metadata:", error);
}
}
displayNetworkMetadata();
Fetches metadata for a specified network.