This section will cover every aspect that is needed to use the backend-example's API and its endpoint.
Active clients
Clients who have at least one active deal with the given provider.
| Name | Type | Description |
|---|---|---|
chainId |
int |
The chain ID from where resources must be fetched. If not provided, it will bring from all networks. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Optional) The chain ID from where deals must be fetched. If not provided, it will bring from all networks. |
filters |
object |
(Optional) The filter object containing all filters that must be applied to the query. For more information, see the API filters documentation. |
page |
int |
(Optional) The page number used in pagination. If not provided, it will bring all elements that matches the filters. |
pageSize |
int |
(Optional) The number of elements contained in each page. If not provided, it will bring all elements that matches the filters. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Optional) The chain ID from where offers must be fetched. If not provided, it will bring from all networks. |
filters |
object |
(Optional) The filter object containing all filters that must be applied to the query. For more information, see the API filters documentation. |
minRating |
number |
(Optional) The average min rating that the offer's provider must have. It can be used along side with every other filter |
page |
int |
(Optional) The page number used in pagination. If not provided, it will bring all elements that matches the filters. |
pageSize |
int |
(Optional) The number of elements contained in each page. If not provided, it will bring all elements that matches the filters. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Optional) The chain ID from where offers must be fetched. If not provided, it will bring from all networks. |
filters |
object |
(Optional) The filter object containing all filters that must be applied to the query. For more information, see the API filters documentation. |
page |
int |
(Optional) The page number used in pagination. If not provided, it will bring all elements that matches the filters. |
pageSize |
int |
(Optional) The number of elements contained in each page. If not provided, it will bring all elements that matches the filters. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID from where deals must be counted. |
provider |
string |
(Required) The provider of deals that will be counted. |
from |
int |
(Optional) The start time from where to start counting deals. Must be unix time, expressed in seconds. |
to |
int |
(Optional) The time where count must be stopped. Must be unix time, expressed in seconds. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID from where revenue will be calculated. |
provider |
string |
(Required) The provider from which want to get the revenue. |
from |
int |
(Optional) The start time from where to start calculating revenue. |
to |
int |
(Optional) The time where count must be stopped. Must be unix time, expressed in seconds. |
| Name | Type | Default Value | Description |
|---|---|---|---|
chainId |
int |
- | (Required) The chain ID from where revenue will be calculated. |
provider |
string |
- | (Required) The provider from which want to get the revenue. |
from |
int |
0 | (Optional) The start time from where to start calculating revenue. Must be unix time, expressed in seconds. |
to |
int |
Current time | (Optional) The time where count must be stopped. Must be unix time, expressed in seconds. |
| Name | Type | Default value | Description |
|---|---|---|---|
chainId |
int |
- | (Required) The chain ID from where clients will be count. |
provider |
string |
- | (Required) The provider from which want count new clients. |
from |
int |
0 | (Optional) The start time from where to start calculating revenue. Must be unix time, expressed in seconds. |
to |
int |
Current time | (Optional) The time where count must be stopped. Must be unix time, expressed in seconds. |
| Name | Type | Default value | Description |
|---|---|---|---|
chainId |
int |
- | (Required) The chain ID from where clients will be count. |
provider |
string |
- | (Required) The provider from which want count active clients. |
from |
int |
0 | (Optional) The start time from where to start calculating revenue. Must be unix time, expressed in seconds. |
to |
int |
Current time | (Optional) The time where count must be stopped. Must be unix time, expressed in seconds. |
| Name | Type | Description |
|---|---|---|
provider |
string |
(Required) The provider from which want to get the deals. |
client |
string |
(Required) The client from which want to get the deals. |
| Name | Type | Description |
|---|---|---|
provider |
string |
(Required) The provider from which want to get the deals. |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID where the offer will be inserted or updated. |
offerId |
int |
(Required) The offer ID |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID where the deal will be inserted or updated. |
dealId |
int |
(Required) The deal ID |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID where the resource will be inserted or updated. |
resourceId |
int |
(Required) The resource ID |
address |
string |
(Required) The resource's owner address |
| Name | Type | Description |
|---|---|---|
chainId |
int |
(Required) The chain ID where the provider will be inserted or updated. |
provider |
int |
(Required) The provider address |
| Name | Type | Description |
|---|---|---|
account |
string |
(Required) The account for which to retrieve event logs. |
chainId |
int |
(Required) The chain ID from where event logs must be fetched. |
page |
int |
(Optional) The page number used in pagination. |
pageSize |
int |
(Optional) The number of elements contained in each page. |