I want to sign the transaction using both a keypair as a backend wallet and the Phantom wallet. I am using the Solana wallet adapter package. How can I do this with the Solana wallet adapter and the backend keypair? I was using this but it can't work as it give me error
Error:
transaction.serialize is not a function at StandardWalletAdapter.sendTransaction (adapter.ts:347:1)
I want to sign the transaction using both a keypair as a backend wallet and the Phantom wallet. I am using the Solana wallet adapter package. How can I do this with the Solana wallet adapter and the backend keypair? I was using this but it can't work as it give me error
Error: transaction.serialize is not a function at StandardWalletAdapter.sendTransaction (adapter.ts:347:1)