Interface SolanaWeb3

Hierarchy

  • SolanaWeb3

Properties

isConnected: boolean
off: ((event: string, callback: (() => void)) => unknown)

Type declaration

    • (event: string, callback: (() => void)): unknown
    • Parameters

      • event: string
      • callback: (() => void)
          • (): void
          • Returns void

      Returns unknown

on: ((event: string, callback: (() => void)) => unknown)

Type declaration

    • (event: string, callback: (() => void)): unknown
    • Parameters

      • event: string
      • callback: (() => void)
          • (): void
          • Returns void

      Returns unknown

publicKey?: {
    toBytes(): Uint8Array;
}

Type declaration

Methods

  • Type Parameters

    • T

    Parameters

    • args: {
          method: string;
          params: {
              message: string;
          };
      }
      • method: string
      • params: {
            message: string;
        }
        • message: string

    Returns Promise<T>

  • Parameters

    • transaction: Transaction
    • Optional connection: Connection
    • Optional options: {}

      Returns Promise<string>

    • Parameters

      • transactions: Transaction[]

      Returns Promise<Transaction[]>

    • Parameters

      • transaction: Transaction | VersionedTransaction

      Returns Promise<{
          signature: string;
      }>

    • Parameters

      • message: Uint8Array
      • encoding: string

      Returns Promise<{
          signature: Uint8Array;
      }>

    Generated using TypeDoc