MyAlgo connect not working

When I try to send a grouped transaction with myalgo connect, the signing works fine,

        const myAlgoConnect = new MyAlgoConnect();
        const txnsToGroup = [ optinapp1txn, optinassettxn];
        const groupID = algosdk.computeGroupID(txnsToGroup)
        for (let i = 0; i < 2; i++) txnsToGroup[i].group = groupID;
        const signedTxns = await myAlgoConnect.signTransaction(txnsToGroup.map(txn => txn.toByte()));

however, when I send the transaction

        (await algodClient.sendRawTransaction(signedTxns.blob).do());

it displays the error TypeError: Argument must be byte array

Please help me!

const blobs = [  ];
signedTxns.forEach((signedTxn) => {
    blobs.push(signedTxn.blob);
});
await algodClient.sendRawTransaction(blobs).do()
2 Likes