Type alias WalletProvider

WalletProvider: {
    accounts: readonly AccountData[];
    chainId: string;
    connect: ((walletKey: SeiWallet) => void);
    connectedWallet?: SeiWallet;
    connectionError?: string;
    disconnect: (() => void);
    offlineSigner?: OfflineSigner;
    restUrl: string;
    rpcUrl: string;
    setConnectionError: Dispatch<SetStateAction<string | undefined>>;
    setShowConnectModal: Dispatch<SetStateAction<boolean>>;
    setTargetWallet: Dispatch<SetStateAction<SeiWallet | undefined>>;
    showConnectModal?: boolean;
    targetWallet?: SeiWallet;
    wallets: SeiWallet[];
}

A generic interface for a wallet provider component. This is implemented by the SeiWalletProvider component.

Type declaration

  • accounts: readonly AccountData[]
  • chainId: string
  • connect: ((walletKey: SeiWallet) => void)
      • (walletKey: SeiWallet): void
      • Parameters

        • walletKey: SeiWallet

        Returns void

  • Optional connectedWallet?: SeiWallet
  • Optional connectionError?: string
  • disconnect: (() => void)
      • (): void
      • Returns void

  • Optional offlineSigner?: OfflineSigner
  • restUrl: string
  • rpcUrl: string
  • setConnectionError: Dispatch<SetStateAction<string | undefined>>
  • setShowConnectModal: Dispatch<SetStateAction<boolean>>
  • setTargetWallet: Dispatch<SetStateAction<SeiWallet | undefined>>
  • Optional showConnectModal?: boolean
  • Optional targetWallet?: SeiWallet
  • wallets: SeiWallet[]

Generated using TypeDoc