The Vault
  • About
    • πŸš€Our Mission
    • πŸ”₯vSOL
    • ✨Points program
    • πŸ€“Contributors
    • πŸ”’Stake pool address
    • 🏦The Vault Fees
    • πŸ“ˆTokenomics
  • Validators
    • πŸ“ŠDelegation Strategy
    • πŸ’«Get stake from the pool!
    • βœ…Validator Allowlist
    • πŸ›‘οΈValidator Shield Initiative
    • 🏦Kamino Multiply Strategy
    • πŸ”Signing A Message
    • πŸͺ™LST Creator
    • βš™οΈLST Creator Widget
    • πŸ“šLST Creator API
    • πŸ›οΈValidator Application Process
    • πŸ“ƒWaitlist Criteria
    • β˜€οΈAllowlist Criteria
    • πŸ’»Validator Reward Claim Instructions
    • πŸ“¦Stake-as-a-Service (SaaS)
  • Users
    • 🎯Validator target stake
    • 🌊Liquid staking
    • πŸ“ˆStaking APY
    • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦Multisig staking
    • πŸ””The Vault Discord
    • β˜€οΈDelayed LST unstaking in Solflare Wallet
    • πŸ‘»Delayed LST unstaking in Phantom Wallet
    • πŸ…Squads
    • πŸŽ–οΈUnits
  • πŸ”Risks
  • πŸ”—Links
Powered by GitBook
On this page
  • πŸ“Œ Introduction
  • πŸ”— API Endpoint
  • ⚑ Required Query Parameters
  • βš™οΈ Optional Parameter
  • πŸ“Š API Response
  • πŸš€ Integration Steps
  • πŸ’‘ Example API Call
  • πŸ“ž Need Help?
  1. Validators

LST Creator API

No React? No Worriesβ€”Mint LSTs Directly with The Vault API.

PreviousLST Creator WidgetNextValidator Application Process

Last updated 2 months ago

πŸ“Œ Introduction

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:

πŸ”— API Endpoint

  • URL: https://direct.thevault.finance/

⚑ Required Query Parameters

To successfully create a transaction, the following parameters must be included in the request:

Parameter
Type
Description

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.

βš™οΈ Optional Parameter

  • target (String): Required only when minting vSOL, specifying the target address.

πŸ“Š API Response

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.

πŸš€ Integration Steps

1️⃣ Construct the API Request

Gather the required parameters (mint, wallet_address, amount, current_balance). If minting vSOL, also include the target parameter.

2️⃣ Send the Request

Make a GET request to:

https://direct.thevault.finance/

with the collected parameters.

3️⃣ Handle the Response

Receive a base64-encoded transaction (transaction) from the API.

4️⃣ Sign the Transaction

Prompt the user's wallet to sign the received transaction.

5️⃣ Broadcast the Transaction

Submit the signed transaction to the Solana network for processing.

πŸ’‘ Example API Call

You can test the API with the following example:

curl "https://direct.thevault.finance/stake?\
address=<Minter's wallet address>&\
mint=gridBR1TSJcV1JjAEE9g7ouoiVaEgDNT3dhY6n9oKQq&\
amount=100000&\
balance=1000000"

πŸ“ž Need Help?

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.

πŸ“š
https://direct.thevault.finance/
The Vault LST Creator Widget
Solana Transaction Inspector
Discord