Query Types
Andromeda has a large variety of queries, each of which require a speific set of parameters.In this section we will go over some of the interfaces in Andromeda.js to set up for these queries.
ContractAddressQuery
Queries that require the contract address to be specified.
Name | Type | Description |
---|---|---|
| string | The contract address to query. |
AndrSearchOptions
Options to setup pagination for queries.
Name | Type | Description |
---|---|---|
| number | Optional limit to the number of results for a query. For example if I query user accounts and set the limit to 10, then 10 user accounts would be queried. |
| string | Optional way to order the results. Can be set to ascending order "Asc" or descending order "Desc". |
| number | Optional id to start after. Used for pagination. |
PaginatedQuery
Queries that have optional pagination.
Name | Type | Description |
---|---|---|
| Optional parameters for the query that has optional pagination. |
PaginatedRequiredQuery
Queries that have required paginations.
Name | Type | Description |
---|---|---|
| Parameters for the query that requires pagination. |
Expiry
Name | Type | Description |
---|---|---|
| number | The timestamp to be used in the query. |
| number | The block_height to be used in the query. |
RecipientADO
Name | Type | Description |
---|---|---|
| The anddress of the ado defined using AndrAddress. | |
| string | Optional message to attach to the ADO. |
RecipientAddress
Interface for recipient addresses.
Recipient
Type that contains all recipient options which are either ADOs or Addresses.
ChainIdQuery
Queries that require the chain Id.
TxQuery
Interface if a minimum or maximum height are required in the query.
Last updated