Changes to be done on the dashboard to enable end-users to pay gas in stablecoins in your Dapp.


โ€‹Checkout this section if you don't know how to register a DApp on the dashboard.

After having your DApp registered, on the โ€œAdd Smart Contractโ€ page, enter the contract name, address and ABI, select Meta Transaction Type as โ€œERC20 Forwarderโ€ then click โ€œAddโ€.

add smart contract with meta transaction type

After this step you need to add your APIs as mentioned in the steps in Biconomy Dashboardโ€‹

Before using this API and SDK make sure you have native meta transaction support in your smart contracts i.e., you have removed the dependency on the msg.sender property from your smart contracts.โ€Œ

Is your contract ready

  • Inherit BaseRelayRecipient.sol and set the trusted forwarder address.

  • Use _msgSender() wherever you use msg.sender in your smart contract.

  • Added method setTrustedForwarder(address _forwarder) to change trusted forwarder address in future.