SolanaProvider: {
    connect: ((opts?: Partial<ConnectOpts>) => Promise<{
        publicKey: PublicKey;
    }>);
    isConnected: boolean | null;
    on: ((event: PhantomEvent, handler: ((args: unknown) => void)) => void);
    publicKey: PublicKey | null;
    request: ((method: PhantomRequestMethod, params: any) => Promise<unknown>);
    signAllTransactions: ((transactions: Transaction[]) => Promise<Transaction[]>);
    signMessage: ((message: Uint8Array | string, display?: DisplayEncoding) => Promise<unknown>);
    signTransaction: ((transaction: Transaction) => Promise<Transaction>);
    signAndSendTransaction(transaction: Transaction, options?: SendOptions): Promise<{
        signature: TransactionSignature;
    }>;
}

Type declaration

  • connect: ((opts?: Partial<ConnectOpts>) => Promise<{
        publicKey: PublicKey;
    }>)
      • (opts?: Partial<ConnectOpts>): Promise<{
            publicKey: PublicKey;
        }>
      • Parameters

        • Optional opts: Partial<ConnectOpts>

        Returns Promise<{
            publicKey: PublicKey;
        }>

  • isConnected: boolean | null
  • on: ((event: PhantomEvent, handler: ((args: unknown) => void)) => void)
      • (event: PhantomEvent, handler: ((args: unknown) => void)): void
      • Parameters

        • event: PhantomEvent
        • handler: ((args: unknown) => void)
            • (args: unknown): void
            • Parameters

              • args: unknown

              Returns void

        Returns void

  • publicKey: PublicKey | null
  • request: ((method: PhantomRequestMethod, params: any) => Promise<unknown>)
      • (method: PhantomRequestMethod, params: any): Promise<unknown>
      • Parameters

        • method: PhantomRequestMethod
        • params: any

        Returns Promise<unknown>

  • signAllTransactions: ((transactions: Transaction[]) => Promise<Transaction[]>)
      • (transactions: Transaction[]): Promise<Transaction[]>
      • Parameters

        • transactions: Transaction[]

        Returns Promise<Transaction[]>

  • signMessage: ((message: Uint8Array | string, display?: DisplayEncoding) => Promise<unknown>)
      • (message: Uint8Array | string, display?: DisplayEncoding): Promise<unknown>
      • Parameters

        • message: Uint8Array | string
        • Optional display: DisplayEncoding

        Returns Promise<unknown>

  • signTransaction: ((transaction: Transaction) => Promise<Transaction>)
      • (transaction: Transaction): Promise<Transaction>
      • Parameters

        • transaction: Transaction

        Returns Promise<Transaction>

  • signAndSendTransaction:function
    • Parameters

      • transaction: Transaction
      • Optional options: SendOptions

      Returns Promise<{
          signature: TransactionSignature;
      }>

Generated using TypeDoc