import { APIResource } from "../../core/resource.js"; import * as WalletsAPI from "./wallets.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * Operations related to wallets */ export declare class Balance extends APIResource { /** * Get the balance of a wallet by wallet ID. * * @example * ```ts * const balance = await client.wallets.balance.get( * 'wallet_id', * ); * ``` */ get(walletID: string, query?: BalanceGetParams | null | undefined, options?: RequestOptions): APIPromise; } export interface BalanceGetResponse { balances: Array; } export declare namespace BalanceGetResponse { interface Balance { asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {}); chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet'; display_values: { [key: string]: string; }; raw_value: string; raw_value_decimals: number; } } export interface BalanceGetParams { /** * The token contract address(es) to query in format "chain:address" (e.g., * "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or * "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together * with `asset`/`chain` or with `include_currency`. */ token?: string | Array; /** * Named asset(s) to query (e.g. `eth`, `usdc`). Use together with `chain` to scope * the query. Cannot be used with `token`. */ asset?: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array; /** * Chain(s) to query named assets on (e.g. `base`, `ethereum`). Use together with * `asset`. Cannot be used with `token`. */ chain?: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet' | Array<'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet'>; /** * If set, balances are converted to the specified fiat currency. Not supported * when `token` is provided. */ include_currency?: 'usd' | 'eur'; } export declare namespace Balance { export { type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams }; } //# sourceMappingURL=balance.d.ts.map