Currently, transactions are being authenticated by MetaMask when we interact with their browser extension. However, is it possible to execute the same user steps via backend calls instead as I thinking of wrapping authentication steps within our api?

Thank you very much

  • Metamask holds the user's private key and sign transaction for them. You can do on backend if your backend hold your user's wallets private key.
    – minhhn2910
    Commented Jan 7, 2023 at 6:31

1 Answer 1


Sure! The issue is, the gas for the transactions needs to be paid for the private key from your backend code. You can transact tokens in behalf of others through setAllowance(). There's some limitations though.

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.