@stratosphere-network/wallet
Version:
Wallet module for StratoSphere SDK
31 lines • 1.15 kB
TypeScript
import { BaseService } from "../base-service";
import { WalletChain, WalletToken, ApiResponse } from "../types";
export declare class AssetsService extends BaseService {
/**
* Get supported chains
* @param active - If true, returns only chains where the user has active balances (requires authentication)
*/
getSupportedChains(active?: boolean): Promise<ApiResponse<WalletChain[]>>;
/**
* Get all available tokens
*/
getAllTokens(): Promise<ApiResponse<WalletToken[]>>;
/**
* Get tokens owned by the authenticated user
*/
getUserTokens(): Promise<ApiResponse<WalletToken[]>>;
/**
* Get tokens for a specific chain by chain ID
*/
getTokensByChainId(chainId: string): Promise<ApiResponse<WalletToken[]>>;
/**
* Get a single token by token ID
* @param tokenId - Token ID in format: CHAINNAME-SYMBOL (e.g., "ETHEREUM-USDC")
*/
getTokenById(tokenId: string): Promise<ApiResponse<WalletToken>>;
/**
* Get a single chain by chain ID
*/
getChainById(chainId: string): Promise<ApiResponse<WalletChain>>;
}
//# sourceMappingURL=assets.d.ts.map