UNPKG

@stratosphere-network/wallet

Version:

Wallet module for StratoSphere SDK

61 lines 2.01 kB
import { Environment, SphereConfig } from "./types"; import { AuthService } from "./services/auth"; import { WalletService } from "./services/wallet"; import { TransactionService } from "./services/transactions"; import { PaymentLinksService } from "./services/payment-links"; import { ProxyWalletService } from "./services/proxy-wallet"; import { DeFiService } from "./services/defi"; import { AssetsService } from "./services/assets"; import { OnrampService } from "./services/onramp"; import { NotificationService } from "./services/notifications"; export declare class Sphere { readonly config: SphereConfig; private readonly httpClient; readonly auth: AuthService; readonly wallet: WalletService; readonly transactions: TransactionService; readonly paymentLinks: PaymentLinksService; readonly proxyWallet: ProxyWalletService; readonly defi: DeFiService; readonly assets: AssetsService; readonly onramp: OnrampService; readonly notifications: NotificationService; constructor(config: SphereConfig); /** * Set the API key for project authentication */ setApiKey(apiKey: string): void; /** * Set the bearer token for user authentication across all services */ setBearerToken(token: string): void; /** * Clear the bearer token from all services */ clearBearerToken(): void; /** * Set API key specifically for M-Pesa operations */ setMpesaApiKey(apiKey: string): void; /** * Check if the SDK is configured with an API key */ hasApiKey(): boolean; /** * Check if the user is authenticated */ isAuthenticated(): boolean; /** * Get the current environment */ getEnvironment(): Environment; /** * Get the base URL being used */ getBaseUrl(): string; } export * from "./types"; export { Environment }; export { NotificationService } from "./services/notifications"; export default Sphere; //# sourceMappingURL=index.d.ts.map