@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function networkFromArkadeInfo

    • The Network an Arkade server's info names.

      ArkadeInfo.network is a plain string on the wire, so every consumer that wanted a Network from it was writing the same unchecked narrowing. This owns it once: getNetwork fails closed on a name it does not know, so an unrecognized server network throws here rather than silently resolving to mainnet parameters downstream.

      Structurally typed rather than importing ArkadeInfo, which would make the network table depend on the provider layer.

      Parameters

      • info: { network: string }

      Returns Network