Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

fetchUser

Fetches the current user's object.


const user = await mirrorworld.fetchUser()
// Returns UserWithWallet object
export interface UserWithWallet {
id: number;
eth_address: string;
sol_address: string;
email: string;
email_verified: boolean;
username: string;
createdAt: string;
updatedAt: string;
wallet: {
eth_address: string;
sol_address: string;
};
}

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference