From f51e540ca5448f93a09f85c1eb009c8cbee11337 Mon Sep 17 00:00:00 2001 From: bigz_Pubkey <83473873+0xbigz@users.noreply.github.com> Date: Sun, 26 Nov 2023 14:33:37 -0500 Subject: [PATCH] Update python init user examples --- source/index.html.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/index.html.md b/source/index.html.md index e372411..ca56a6b 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -195,8 +195,7 @@ const [txSig, userPublickKey] = await driftClient.initializeUser( ``` ```python -# todo: cannot init with name -tx_sig = await drift_client.intialize_user(0) +tx_sig = await drift_client.initialize_user(sub_account_id=0, name="toly") ``` | Parameter | Description | Optional | Default | @@ -240,6 +239,10 @@ driftClient.switchActiveUser( ); ``` +```python +drift_client.switch_active_user(sub_account_id=1) +``` + | Parameter | Description | Optional | Default | | ----------- | ----------- | -------- | ------- | | subAccountId | The sub account to switch to | No | 0 |