Hi there, wondering about the best way to call a smart-contract setter function from a backend.
Basically, Iâve got a react front-end, and a smart-contract on the BSC, that I must keep up to date with some data from Ethereum (NFT ownership). The simplest way I found is to listen for a transfer event on Ethereum, and when that happens, to update the NFT owner in my contract on the BSC (with a simple setter function). But I donât know how to sign the TX from my react app since itâs not like I have any user connected to metamask. I would like this process to be automatic.
event listener: if event triggered => setNewValue in contract (keep the contract up to date)
Seems like I must set a Node/Express backend in my react app that will use my private key to sign the transactions, but donât really have a clue about where to start!
Any help appreciated!