Web SDK class reference
new CavosSDK(config: CavosConfig)
interface CavosConfig { appId: string; network?: 'sepolia' | 'mainnet'; paymasterApiKey?: string; starknetRpcUrl?: string; enableLogging?: boolean; passkeyModal?: { title?: string; description?: string; buttonText?: string; }; }
async init(): Promise<void>
async login(provider: 'google' | 'apple', redirectUri?: string): Promise<void>
async loginWithGoogle(redirectUri?: string): Promise<void>
async loginWithApple(redirectUri?: string): Promise<void>
async handleCallback(authDataString: string): Promise<void>
async logout(): Promise<void>
isAuthenticated(): boolean
getUserInfo(): UserInfo | null
async deleteAccount(): Promise<void>
async createWallet(): Promise<void>
getAddress(): string | null
async hasWallet(): Promise<boolean>
async getBalance(): Promise<string>
getFundingAddress(): string | null
async isAccountDeployed(): Promise<boolean>
async deployAccount(): Promise<string>
async retryWalletUnlock(): Promise<void>
async hasPasskeyOnlyWallet(): Promise<boolean>
async loadPasskeyOnlyWallet(): Promise<void>
async recoverWalletWithPasskey(): Promise<void>
async clearPasskeyOnlyWallet(): Promise<void>
async execute( calls: Call | Call[], options?: { gasless?: boolean } ): Promise<string>
async signMessage(message: string | TypedData): Promise<Signature>
hasActiveSession(): boolean
async createSession(): Promise<void>
getOnramp(provider: 'RAMP_NETWORK'): string
getAccount(): Account | null
getSessionAccount(): Account | null
async deleteWallet(): Promise<void>