Skip to content

add endpoint to initialize user #6

@wphan

Description

@wphan

see response from #5

User should be able to initialize a user from gateway:

  • if no exists, there'll be an RPC error finding the account (issue Surface more RPC errors to user #5 ), should prompt user to initialize their drift user
  • If initializing the first drift user (subaccountId = 0), need to also initialize the userStats (ts sdk)
  • otherwise to create more subaccounts just pass subAccountId > 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions