Helius SDK - v5.0.0
    Preparing search index...

    Function resolveSenderAccess

    • Decide whether a client can use Sender. Sender is mainnet-only and needs an API key, unless senderUrl is set: then Sender goes there (a proxy can add the key) and the key is sent only if the client has one.

      network is the network the client's endpoint resolves to: null for a non-Helius baseUrl, which is allowed because Sender never goes to baseUrl. requestedNetwork is the client's network option; "devnet" there also blocks Sender, so a devnet client behind a custom baseUrl doesn't send devnet transactions to mainnet.

      Parameters

      • apiKey: string | undefined
      • network: "mainnet" | "devnet" | null
      • OptionalrequestedNetwork: "mainnet" | "devnet"
      • OptionalsenderUrl: string

      Returns SenderAccess