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.


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

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference