Skip to main content

TypeScript shape

interface BalancesInput {
  walletAddress?: string | null;
  networks?: number[] | null;
  tokens?: string[] | null;
  includeNative?: boolean | null;
  limit?: number | null;
  cursor?: string | null;
  removeScams?: boolean | null;
  walletId?: string | null;
  filterToken?: string | null;
  sortBy?: BalancesSortAttribute | null;
  sortDirection?: RankingDirection | null;
}
walletAddress
String
Wallet address to fetch balances for.
networks
[Int!]
Array of network IDs to filter by (e.g. [1, 56, 1399811149]).
tokens
[String!]
Array of token addresses to filter by.
includeNative
Boolean
Whether to include native assets (default: true).
limit
Int
Maximum number of results to return (default: 50).
cursor
String
Pagination cursor from a previous response.
removeScams
Boolean
Whether to filter out scam tokens (default: true).
sortBy
BalancesSortAttribute
Sort attribute. See BalancesSortAttribute.
sortDirection
RankingDirection
Sort direction. See RankingDirection.