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.
Decide whether a client can use Sender. Sender is mainnet-only and needs an API key, unless
senderUrlis set: then Sender goes there (a proxy can add the key) and the key is sent only if the client has one.networkis the network the client's endpoint resolves to:nullfor a non-HeliusbaseUrl, which is allowed because Sender never goes tobaseUrl.requestedNetworkis the client'snetworkoption;"devnet"there also blocks Sender, so a devnet client behind a custombaseUrldoesn't send devnet transactions to mainnet.