I'm creating a dapp and token (using openzeppelin). I just wonder how i can let the receiver pay the gas fee like pancakeswap or uniswap doing.

Dapp is create in nodejs / express JS.

1 Answer 1


You'll need web3 or ethers in order to do it.

Transactions always have to be signed by someone - unless you're using burner wallets. In this case, let the users sign the transaction!

WEB3 syntax (more in the documentation):

web3.eth.sendTransaction(transactionObject [, callback])

Ethers syntax (more in the documentation):


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.