• Fetches metadata for a specified network.

    Parameters

    • network: NETWORK_TYPE

      The network identifier for which to fetch metadata.

    Returns Promise<INetworkMetadata>

    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();