〰️ Check Limits
Check whether limits are reached before sending meta transaction
Developers can apply limits on the usage of meta transactions from the Dashboard on a per DApp, per User and per API for each user.
So before sending meta transactions on the client-side, developers can use this API to check whether the limits have already reached or not. If limits are reached developers can either fall back to the default web3 provider, show a message to the user that your free transaction limits have been exhausted, and let the user pay the gas fee or show an error message to the user.
Check Limits
GET
https://api.biconomy.io/api/v1/dapp/checkLimits?userAddress=<user_address>&apiId=<api_id>
This API lets you know the current status of DApp limits for a particular user address and api id (smart contract method). In case when limits are exhausted, response will contain information about what was the type of limits applied and when the limits will be reset.
Query Parameters
apiId
string
Api Id corresponding to smart contract methods against which limits needs to be checked for given user. This can be get from the dashboard under "Manage API" section
userAddress
string
Address of the user for whom the limits needs to be checked.
Headers
x-api-key
string
API Key can be found on the Dashboard on view DApp page under Keys section. This is specific to a DApp.
Example Curl Request
curl --request GET --url 'https://api.biconomy.io/api/v1/dapp/checkLimits?userAddress=<USER_ADDRESS>&apiId=<API_ID_HERE>' --header 'x-api-key: <API_KEY_HERE>'
Last updated