Currencies
Introduction
The Currencies query allows you to retrieve a list of currencies supported by the protocol. This query provides details about each currency, including its name, symbol, decimals, and contract information.
Query: currencies
currencies
Retrieve a list of supported currencies with details.
Input
request
(Type:PaginatedOffsetRequest!
): An object that contains the query parameters. This request may include pagination options.
Output
-
items
(Type:[Currency!]
): A list of Currency objects, each representing a supported currency.name
(Type:String!
): The name of the currency.symbol
(Type:String!
): The symbol or ticker of the currency.decimals
(Type:Int!
): The number of decimal places used for the currency.contract
(Type:ContractInfo!
): Information about the currency's contract.address
(Type:String!
): The Ethereum address of the contract.chainId
(Type:Int!
): The chain ID associated with the contract.
-
pageInfo
(Type:PageInfo
): Pagination information for navigating the list.prev
(Type:String
): The previous page token for pagination.next
(Type:String
): The next page token for pagination.
Input Type: PaginatedOffsetRequest
PaginatedOffsetRequest
This input type is used to specify the parameters for the currencies
query, including pagination options.
Fields
limit
(Type:LimitType
): The maximum number of items to return in the query results.Cursor
(Type:Cursor
): The Cursor Object for pagination.
Example Query
Here's an example query that retrieves a list of supported currencies:
query {
currencies(request: {limit: "Fifty" }) {
items {
name
symbol
decimals
contract {
address
chainId
}
}
pageInfo {
prev
next
}
}
}
Updated about 1 month ago