Type alias Wallet

Wallet: {
    publicKey: web3.PublicKey;
    signTransaction: (<T>(transaction) => Promise<T>);
    signAllTransactions: (<T>(transactions) => Promise<T[]>);
}

A Solana wallet with a public key and methods to sign transaction.

Type declaration

  • publicKey: web3.PublicKey

    Wallet public key.

  • signTransaction: (<T>(transaction) => Promise<T>)
      • <T>(transaction): Promise<T>
      • Sign a transaction using the wallet private key.

        Type Parameters

        • T extends web3.Transaction | web3.VersionedTransaction

        Parameters

        • transaction: T

          The transaction to sign

        Returns Promise<T>

        The signed transaction

  • signAllTransactions: (<T>(transactions) => Promise<T[]>)
      • <T>(transactions): Promise<T[]>
      • Sign all transactions using the wallet private key.

        Type Parameters

        • T extends web3.Transaction | web3.VersionedTransaction

        Parameters

        • transactions: T[]

          The transactions to sign

        Returns Promise<T[]>

        The signed transactions

Generated using TypeDoc