Skip to content
/ cli Public

Compiled command line utilities to interact with P2P lending, Pool lending (superlendy, Texture 2.0) and Vaults.

Notifications You must be signed in to change notification settings

texture-fi/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Command-Line Utilities for SuperLendy, Vault, and P2P Lending Protocols

1. Purpose

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.


2. Security

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.


3. Working with the P2P Lending Protocol

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


4. Working with the SuperLendy Pool Lending Protocol

To view positions, repay debt, withdraw collateral, and perform other actions, use the sup utility.

Examples

  • 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


5. Working with Vaults

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

About

Compiled command line utilities to interact with P2P lending, Pool lending (superlendy, Texture 2.0) and Vaults.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published