Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "api/profile"

Index

Functions

Functions

profile

  • Returns a profile of the given account name. The profile includes an overall score and the distribution of incoming tokens within different categories.

    example

    Request a profile of the account eosnationftw:

    const profile = await detective.profile("eosnationftw");

    Response:

    {
      account: 'eosnationftw',
      contract: 'eosio.token',
      token: 'EOS',
      total_tokens_received: 74747.4845,
      score: 87.3,
      categories: {
        system: {
          percentage: 0.9994754378657384,
          volume: 74708.2748,
          count: 205
        }
      }
    }

    Parameters

    • account: string

      EOS mainnet account name

    • Optional threshold: undefined | number

      Minimum proportion of a transfer to be included in profiling (as percentage between 0.001 and 0.9). Default is 0.01

    Returns Promise<ApiResponse<Profile>>

Generated using TypeDoc