Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add endpoint to initialize user #6

Open
wphan opened this issue Dec 19, 2023 · 0 comments
Open

add endpoint to initialize user #6

wphan opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@wphan
Copy link
Member

wphan commented Dec 19, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants