Register your DApp to enable meta transactions for a better user experience.
Biconomy Dashboard allows developers to register their DApps (Decentralized Applications), smart contracts and manage methods/api on which a developer wants to enable meta transactions or gasless transactions.
On the Home page, click on “Register” and a pop-up will open.
Enter your DApp Name and select a network.
Click “Create” to register your DApp.
Get your API Key
After DApp creation, you’ll have an API Key generated. Copy the value as you’ll be needing it when you integrate Biconomy SDK (Mexa) in your DApp interface.
Add Smart Contracts
After the DApp is created, you need to register your smart contracts now. All you need is your deployed smart contract address and ABI (Application Binary Interface).
After DApp registration, on the home page, click “View DApp”.
On the DApp details page, click “Add contract” to add a smart contract on which you want to enable Meta-transaction.
On the “Add Smart Contract” page, enter the contract name, address and ABI, Meta Transaction Type (default value: Custom) then click “Add”.
After smart contract addition, you will be redirected to the DApp details page where you can see the added contract in the “Smart Contracts” section.
There is a “Delete” option to delete the same.
Note: You can add multiple smart contracts in a DApp.
After the Smart Contracts are added, the last step you need to do is to select and add meta APIs i.e., your smart contract methods on which you need to enable meta transactions.
If you don’t add any methods, meta transaction functionality will not be applied to your smart contract.
Follow below steps to add the methods
On “View DApp” page, under “DApp APIs” section, click on “Manage APIs”
Click “New API”, select Smart Contract, Method (for which you want to enable meta transactions), enter the name of your method then click “Add”.
Your selection will not persist in the database at this point of time.
You can add more than one methods. Added methods will be visible at the bottom. Click on “Save” to persist them in database.
Enable Native Meta Transactions
Biconomy supports native meta transaction integration only so "Native meta-tx" check box is already selected by default as shown below:
Congratulations! You have now successfully registered your DApp on the Mexa dashboard and enabled the meta transaction feature. The next step is to integrate Mexa SDK in your DApp code.
In order to prevent anyone from sending transactions using your API Key and misuse your funds, we suggest you set up domain restrictions on your dapp so only the requests coming from your domain will be entertained and others will be rejected.
On the DApp details page, click on “Configurations” on top right.
Click on “ Add URL” to add your domain and enter your Domain URL.
Click on “Register” to add your domain url.
In order to prevent misuse of your funds by DApp users, the Mexa dashboard provides a Limit feature.
On the DApp details page, click on “Edit Limit” on middle right.
On the Edit Limit page, select "Type" of the limit either ETH or No. of Meta-Tx.
Now enter the "Value" of the Limit.
Last, Select The "Target", which will define how these limits will be applied. You can apply limit 'per Dapp', 'per User' or 'per API'.