2

I have a server which signs a transaction and sends it the signedTx back to the client. i want to broadcast this tx from the client side, using Infura as a provider. I couldnt find info on how to do it.

2 Answers 2

4

For anyone using ethers.js V6, you can use the provider.broadcastTransaction function.

2

Just found out. Dont need to get signer from provider. The tx can be sent by: provider.sendTransaction(signedTx)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.