'Facing issue with smart contract APIs based on ExpressJS

I am trying to develop a MERN stack based NFT marketplace.

I am trying to develop APIs in ExpressJS that will interact with Smart Contracts using EtherJS. While at the frontend, I have integrated Sequence Wallet and will call the relevant APIs as the need arises.

But I am running into some problems, like when creating a transaction or minting an NFT, we need to get the signer from the wallet. So as my smart contracts are linked to the Backend, and the wallet is linked to the frontend, how can I sign the transactions at the Backend?

I am currently planning to somehow transfer the signer to the Backend and sign the transaction there.

I would really appreciate any insight here. My experience as a blockchain developer is very new, but I am a seasoned full-stack developer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source