Skip to content

Commit

Permalink
Update python init user examples
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz authored Nov 26, 2023
1 parent a473f17 commit f51e540
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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 |
Expand Down

0 comments on commit f51e540

Please sign in to comment.