This repository provides command-line utilities designed to interact with the SuperLendy smart contracts, Vaults, and the P2P lending protocol.
Using these tools, you can perform all the actions that were (or are) available through the texture.fi user interface.
These utilities require access to your private key (in JSON format) in order to sign and send transactions on your behalf.
- You can export your private key from your wallet’s UI (e.g., Phantom) as a JSON file.
- The utilities do not transmit or share your private key anywhere.
- However, you can only take this "on trust."
For maximum safety, we recommend reviewing the source code and compiling the binaries yourself before using them.
To interact with the P2P lending protocol, use the mol utility.
Run commands in your operating system terminal.
To see the full set of commands:
mol --help
To view positions, repay debt, withdraw collateral, and perform other actions, use the sup utility.
-
View your positions: sup positions --owner <your_main_wallet_address>
-
Repay debt: sup --authority <path_to_your_json_key> repay
--reserve <reserve_to_repay_debt_in_find_it_from_listing_of_your_position>
--position <your_position_address>
--amount <amount_in_lamports_or_equivalent_smallest_units> -
Unlock collateral (make it withdrawable): sup unlock
-
Withdraw available collateral: sup withdraw
ℹ️ All commands require additional parameters. For details, check the help:
sup withdraw --help
Use the vlt and vlp utilities to interact with Vaults.
-
List vaults: vlt vaults
-
List positions: vlp positions
(You can find your positions by filtering with--owner.) -
Withdraw your deposit from a vault: vlt withdraw --position --vlp-amount