Skip to main content

moxieUserInfo

Description

moxieUserInfo state returns all Senpi user's related information, from user ID, username, wallet, etc.

Usage

import { MoxieUser } from "@moxie-protocol/moxie-agent-lib";

const moxieUserInfo: MoxieUser = state.moxieUserInfo;

Response

{
"id": "M1",
"userName": "vitalik.eth",
"name": "vitalik.eth",
"bio": null,
"profileImageUrl": "https://i.imgur.com/Y1au7ZB.jpg",
"referralCode": "TTg=",
"referrerId": "M12",
"communicationPreference": "WARPCAST",
"primaryWalletId": "03463334-3c5c-4d08-9551-188f62b2586a",
"moxieScore": 1000,
"moxieRank": 0,
"createdAt": "2024-12-20T14:37:34.348Z",
"identities": [
{
"id": "fd14e2a4-11a2-4115-81b4-4b1d266ade64",
"userId": "M1",
"type": "FARCASTER",
"connectedIdentitiesFetchStatus": "SUCCESS",
"metadata": {
"bio": "hullo",
"username": "vitalik.eth",
"displayName": "Vitalik Buterin",
"fid": 15971,
"pfp": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRfC2vsceENh7G_Q-hg6Ju6YwVYqn6f_VXsMA&s",
"type": "farcaster",
"verifiedAt": "2025-02-03T06:50:41.000Z",
"ownerAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"firstVerifiedAt": "2025-02-03T06:50:41.000Z",
"latestVerifiedAt": "2025-02-03T06:50:41.000Z"
},
"profileId": "5650",
"isActive": true,
"createdAt": "2025-01-07T12:12:05.833Z",
"updatedAt": "2025-01-07T12:12:05.833Z",
"dataSource": "PRIVY"
},
{
"id": "060e2d06-6fc4-45f8-8d51-3014a8406684",
"userId": "M1",
"type": "TWITTER",
"connectedIdentitiesFetchStatus": "SUCCESS",
"metadata": {
"name": "vitalik.eth",
"type": "twitter_oauth",
"subject": "2893777598",
"username": "VitalikButerin",
"verifiedAt": "2025-01-06T19:28:06.000Z",
"firstVerifiedAt": "2025-01-06T19:28:06.000Z",
"latestVerifiedAt": "2025-01-06T19:28:06.000Z",
"profilePictureUrl": "https://pbs.twimg.com/profile_images/1880759276169224192/rXpjZO0A_400x400.jpg"
},
"profileId": "VitalikButerin",
"isActive": true,
"createdAt": "2025-01-07T12:12:05.833Z",
"updatedAt": "2025-01-07T12:12:05.833Z",
"dataSource": "PRIVY"
}
],
"wallets": [
{
"id": "03463334-3c5c-4d08-9551-188f62b2586a",
"userId": "M1",
"walletAddress": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"walletType": "injected",
"createdAt": "2025-01-07T12:12:05.852Z",
"deletedAt": null,
"dataSource": "PRIVY"
},
{
"id": "ef43dedc-9b17-49e0-93bf-94359d47f061",
"userId": "M1",
"walletAddress": "0xa5cc845ef113c4c0908d4c1f4616a000b9a67b80",
"walletType": "embedded",
"createdAt": "2025-01-07T12:12:05.852Z",
"deletedAt": null,
"dataSource": "PRIVY"
}
],
"vestingContracts": []
}

Type Signature

export interface MoxieUser {
id: string;
userName?: string;
name?: string;
bio?: string;
profileImageUrl?: string;
referralCode: string;
referrerId?: string;
moxieScore?: number;
moxieRank?: number;
totalUsers?: number;
primaryWalletId?: string;
communicationPreference?: string;
createdAt: string;
identities: MoxieIdentity[];
wallets: MoxieWallet[];
vestingContracts?: VestingContract[] | null;
}

Fields

NameTypeDescription
idstringUnique identifier for the Senpi user
userNamestringUser's chosen username
namestringUser's display name
biostringUser's biography or description
profileImageUrlstringURL to user's profile image
referralCodestringUser's unique referral code
referrerIdstringID of the user who referred this user
moxieScorenumberUser's Senpi Score based on their activity and connections
moxieRanknumberUser's rank among all Senpi users
totalUsersnumberTotal number of Senpi users
primaryWalletIdstringID of user's primary wallet
communicationPreferencestringUser's preferred communication method
createdAtstringTimestamp of when the user account was created
identitiesMoxieIdentity[]Array of connected social identities (Twitter, Farcaster, etc.)
walletsMoxieWallet[]Array of connected crypto wallets
vestingContractsVestingContract[]Array of vesting contract information