@pear-protocol/hyperliquid-sdk
Version:
React SDK for Pear Protocol Hyperliquid API integration
15 lines (14 loc) • 933 B
TypeScript
import type { ApiResponse, GetEIP712MessageResponse, AuthenticateRequest, AuthenticateResponse, RefreshTokenResponse, LogoutResponse } from '../types';
export declare function getEIP712Message(baseUrl: string, address: string, clientId: string): Promise<ApiResponse<GetEIP712MessageResponse>>;
export declare function authenticate(baseUrl: string, body: AuthenticateRequest): Promise<ApiResponse<AuthenticateResponse>>;
/**
* Convenience wrapper for Privy access token authentication
*/
export declare function authenticateWithPrivy(baseUrl: string, params: {
address: string;
clientId: string;
appId: string;
accessToken: string;
}): Promise<ApiResponse<AuthenticateResponse>>;
export declare function refreshToken(baseUrl: string, refreshTokenVal: string): Promise<ApiResponse<RefreshTokenResponse>>;
export declare function logout(baseUrl: string, refreshTokenVal: string): Promise<ApiResponse<LogoutResponse>>;