I've been trying to create & send transactions like this, but I'm gettingSolanaError: JSON-RPC error: Invalid method parameter(s) (invalid base58 encoding: InvalidCharacter { character: '+', index: 12 })
const transactionMessage = pipe( createTransactionMessage({ version: 0 }), (tx) => setTransactionMessageFeePayerSigner(kp, tx), (tx) => setTransactionMessageLifetimeUsingBlockhash( { blockhash, lastValidBlockHeight }, tx ), (tx) => appendTransactionMessageInstructions(instructions, tx), (m) => addSignersToTransactionMessage([kp, newAccountKp], m) ); const tx = await pipe(compileTransaction(transactionMessage), (tx) => signTransaction([kp.keyPair, newAccountKp.keyPair], tx) ); const sig = rpc .sendTransaction(getBase64EncodedWireTransaction(tx), { skipPreflight: true, }) .send();