LST Creator API
No React? No WorriesβMint LSTs Directly with The Vault API.
Last updated
No React? No WorriesβMint LSTs Directly with The Vault API.
Last updated
For developers who prefer not to use React or wish to integrate minting functionality in a custom manner, The Vault offers a direct API endpoint at . This API enables you to mint Liquid Staking Tokens (LSTs) by constructing transactions tailored to your application's requirements.
π GitHub Repository:
URL: https://direct.thevault.finance/
To successfully create a transaction, the following parameters must be included in the request:
mint
String
The mint address of the LST to be minted.
wallet_address
String
The wallet address initiating the minting process.
amount
Number
The amount of tokens to be minted.
current_balance
Number
The current balance of the user's wallet.
target
(String): Required only when minting vSOL, specifying the target address.
Upon sending a valid request, the API returns a base64-encoded transaction (transaction
). The user's wallet must sign this transaction and then broadcast it to the Solana network to complete the minting process.
Gather the required parameters (mint
, wallet_address
, amount
, current_balance
). If minting vSOL, also include the target
parameter.
Make a GET request to:
with the collected parameters.
Receive a base64-encoded transaction (transaction
) from the API.
Prompt the user's wallet to sign the received transaction.
Submit the signed transaction to the Solana network for processing.
You can test the API with the following example:
Get started today and integrate LST minting seamlessly into your application!
If you run this, you will receive a transaction (transaction
) that you can inspect and simulate by pasting it into the .
For any issues or questions, join our community.