Function signAndSendTransactionWithPrivateKeys

  • This function accepts the connection to the user’s wallet, the encodedTransaction received in the response of the API call and the wallet object. The only difference is, along with these parameters, this function also takes in an array of private keys, which can contain all the private keys required to partially sign the transaction.

    Returns

    transaction signature

    Parameters

    • network: Network

      solana rpc network (mainnet-beta/devnet/testnet)

    • encodedTransaction: string

      serialized transaction (base64 string)

    • privateKeys: string[]

      private key of wallets (Array of strings)

    Returns Promise<string>

Generated using TypeDoc