Conversation
Karrenbelt
commented
Sep 18, 2025
Comment on lines
+5
to
+22
| > Assumes you have completed: | ||
| > | ||
| > - Installation ([installation.md](installation.md)) | ||
| > - Account registration ([authentication.md](authentication.md)) | ||
| > You should already have: | ||
| > - `DERIVE_SESSION_KEY` | ||
| > - `DERIVE_LIGHTACCOUNT` | ||
| > - `DERIVE_SUBACCOUNT` | ||
|
|
||
| ## 1. Set Up Environment Variables | ||
|
|
||
| You can manage your credentials via a `.env` file to keep them out of your code: | ||
|
|
||
| ```shell | ||
| SESSION_KEY_PRIVATE_KEY= | ||
| DERIVE_LIGHTACCOUNT= | ||
| DERIVE_SUBACCOUNT= | ||
| ``` |
Collaborator
Author
There was a problem hiding this comment.
should name this consistently: DERIVE_SESSION_KEY
Karrenbelt
commented
Sep 18, 2025
Comment on lines
+76
to
+86
| ```python | ||
| # Bridge ETH for gas - ensures you can always withdraw funds | ||
| prepared_tx = client.bridge.prepare_deposit( | ||
| human_amount=0.01, | ||
| currency="ETH", | ||
| source_chain="ETH", | ||
| target_chain="DERIVE", # Goes to your EOA | ||
| ) | ||
| tx_result = client.bridge.submit_deposit(prepared_tx=prepared_tx) | ||
| tx_result = client.bridge.poll_progress(tx_result=tx_result) | ||
| ``` |
Collaborator
Author
There was a problem hiding this comment.
we can allow for strings so user doesn't have to import the enum if we use @validate_call for type casting to enum, making it just that much easier while still providing runtime validation
Karrenbelt
commented
Sep 18, 2025
Comment on lines
+22
to
+31
| ## Step 1. Generate a Private Key | ||
|
|
||
| You can generate a private key using the helper script: | ||
|
|
||
| ```shell | ||
| ./scripts/generate-key.py | ||
| ``` | ||
|
|
||
| Or use an existing key | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
this script I've not included in this PR yet, but i have it. It's two click commands, effectively, for generating private key, encrypting it and saving it, and another for reading it in, prompting for password to decrypt. But that's not yet integrated into the client as we have it now so will come in a separate PR later
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.