Skip to main content

Callable


  • Retrieves the latest node image for the specified release channel.


    Parameters

    • releaseChannel: ReleaseChannel

      The release channel (‘mainnet’, ‘testnet’, or ‘latest’).

    Returns Promise<string>

    A promise that resolves to the latest node image for the specified release channel.

    Basic usage example:

    import { getNodeImage, ReleaseChannel } from '@switchboard-xyz/oracle';

    (async () => {
    const releaseChannel: ReleaseChannel = 'testnet';
    const nodeImage = await getNodeImage(releaseChannel);
    console.log(`Latest node image for the ${releaseChannel} release channel: ${nodeImage}`);
    })();