Skip to content

@lelantos-org/sdk / index / ConnectOptions

Type Alias: ConnectOptions โ€‹

ts
type ConnectOptions = 
  | ConnectExtraOptions & ConnectKeyOptions & ConnectChainOptions
  | ConnectExtraOptions & NoKeyOptions & SelfKeyingChainOptions;

Defined in: @lelantos-org/sdk/dist/wallet/connect/options.d.ts:159

Everything connect() accepts: a chain layer, optionally an explicit key source, plus the shared options. Both groups are exclusive unions, so an invalid combination (mnemonic and nsk, signer and privateKey) fails to compile instead of throwing at runtime.

The key source may be omitted when the chain layer can derive one, which is what makes connect({ privateKey, network, rpcUrl }) a complete call.

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub