I keep getting this error when I try to import in my React client app. I don't understand what the problem is. The aws-lambda imports should be for autotask and I wasn't importing through an autotask.
Hey @isoteriksoftware , please check out this thread:
Hey @loophe ! The defender-relay-client is meant to be used along your secret API keys to send transactions via your relayer. This means that anyone who accesses your webapp would have the info required to send txs from your relayer on your behalf. This is why we built the relay-client to be used only from nodejs (ie server-side) environments.
That said, we’d love to know what’s your use case for bundling the relay-client in your app! In the meantime, as a workaround, you can call an Autotask vi…
1 Like
Oh wow... never thought about it that way. thanks
1 Like