πŸ§‘πŸ”§
Per User Limits Data
With this data API, one can find out the limits left for a particular user based on the values set on the dashboard
get
https://data.biconomy.io/api/v1/dapp
/user-limit
Fetches limit data for a particular user

API Call via NodeJS

1
const fetch = require("node-fetch");
2
const { URL, URLSearchParams } = require('url');
3
const authToken = "<Account's AUTH TOKEN>";
4
const apiKey = "<Dapp's API KEY>";
5
const getUserLimitsData = () => {
6
const url = new URL("https://data.biconomy.io/api/v1/dapp/user-limit");
7
​
8
const params = {
9
apiId : "10fc7db6-7899-4ed7-b5ec-22jd9b156640", // apiId unique to every method of a smart contract
10
signerAddress : "0x040a9cbC4453B0eeaE12f3210117B422B890C1ED"
11
}
12
13
url.search = new URLSearchParams(params).toString();
14
​
15
const requestOptions = {
16
method: 'GET',
17
headers: { "Content-Type": "application/x-www-form-urlencoded", "authToken": authToken, "apiKey" : apiKey }
18
};
19
20
fetch(url, requestOptions)
21
.then(response => response.json())
22
.then(data => console.log(data))
23
.catch(error => console.error('Error:', error));
24
}
25
​
26
getUserLimitsData();
Copied!