Constructors

Properties

formats: {
    web2: {
        discord: string[];
        github: string[];
        twitter: string[];
    };
} = ...

Methods

  • Create a web2 proof payload for use with web2 identity inference.

    Parameters

    Returns Promise<string>

    The web2 proof payload string.

  • Get demos accounts by linked discord identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • username: string

      The username to get the account for.

    • OptionaluserId: string

      The user id to get the account for.

    Returns Promise<Account[]>

    The account associated with the identity.

  • Get demos accounts by linked github identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • username: string

      The username to get the account for.

    • OptionaluserId: string

      The user id to get the account for.

    Returns Promise<Account[]>

    The account associated with the identity.

  • Get demos accounts by linked telegram identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • username: string

      The username to get the account for.

    • OptionaluserId: string

      The user id to get the account for.

    Returns Promise<Account[]>

    The account associated with the identity.

  • Get demos accounts by linked twitter identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • username: string

      The username to get the account for.

    • OptionaluserId: string

    Returns Promise<Account[]>

    The account associated with the username.

  • Get demos accounts by linked web2 identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • context:
          | "github"
          | "twitter"
          | "telegram"
          | "discord"

      The context of the identity to get the account for.

    • username: string

      The username to get the account for.

    • OptionaluserId: string

      The user id to get the account for.

    Returns Promise<Account[]>

    The account associated with the identity.

  • Get demos accounts by linked web3 identity.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • chain: `${string}.${string}`

      The chain as a string containing the chain and subchain separated by a period (eg. "eth.mainnet" | "solana.mainnet", etc.)

    • address: string

      The address to get the account for.

    Returns Promise<Account[]>

    The account associated with the identity.

  • Get the identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • call: string = "getIdentities"
    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Get referral information for an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • Optionaladdress: string

      The address to get referral info for. Defaults to the connected wallet's address.

    Returns Promise<RPCResponse>

    The referral information associated with the address.

  • Get the web2 identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Get the crosschain identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Validate a referral code to check if it exists and is valid.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • referralCode: string

      The referral code to validate.

    Returns Promise<RPCResponse>

    The validation result containing validity status, referrer public key, and message.