Skip to content

@lelantos-org/sdk / index / ConnectChainOptions

Type Alias: ConnectChainOptions โ€‹

ts
type ConnectChainOptions = 
  | Only<{
  chain: ChainAdapter;
  rpcUrl?: string;
}, ChainOptionKeys>
  | Only<{
  rpcUrl: string;
  signer: EthSigner;
}, ChainOptionKeys>
  | Only<{
  address: `0x${string}`;
  provider: Eip1193ProviderLike;
  rpcUrl: string;
}, ChainOptionKeys>
  | Only<{
  privateKey: `0x${string}`;
  rpcUrl: string;
}, ChainOptionKeys>;

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

How transactions reach the chain โ€” pick exactly one shape. Everything but the pre-built chain adapter needs an rpcUrl for reads.

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