UNPKG

client-aftermath-ts-sdk

Version:
35 lines 1.51 kB
import { Caller } from "../../general/utils/caller"; import { CallerConfig } from "../../types"; import { ApiUserDataCreateUserBody, ApiUserDataPublicKeyBody } from "./userDataTypes"; export declare class UserData extends Caller { constructor(config?: CallerConfig); /** * Fetches the API for users public key. * @async * @param { SuiAddress } inputs - An object containing the walletAddress. * @returns { Promise<string | undefined> } A promise that resolves users public key. */ getUserPublicKey(inputs: ApiUserDataPublicKeyBody): Promise<string | undefined>; /** * Fetches the API to create users public key. * @async * @param { ApiUserDataCreateUserBody } inputs - The inputs for creating users public key on BE side. * @returns { Promise<boolean> } A promise that resolves to result if user pk has been created. */ createUserPublicKey(inputs: ApiUserDataCreateUserBody): Promise<boolean>; /** * Fetches the API for user create message to sign. * @returns { string } message to sign with action related to the service you interact with. */ createUserAccountMessageToSign(): { action: string; }; /** * Fetches the API for creating sign and terms message to sign. * @returns { string } message to sign with action related to the service you interact with. */ createSignTermsAndConditionsMessageToSign(): { action: string; }; } //# sourceMappingURL=userData.d.ts.map