Orchestrator
Orchestrator SDK
getUserId

getUserId

Get the user id of the user account.

Usage

const userId = await orchestrator.getUserId(
  '0x9EB7504B7546b1B66e177B364A3566eC10132A40',
)

Parameters

accountAddress

The address of the account to get the user id for.

chainId (optional)

  • Type: number

The chain ID to get the user id for. If not provided, returns the user id for all chains.

Returns

userId

  • Type: Promise<{ userId: string; chainId: number }[]>

The user id for the account with the respective chain id.