For the complete documentation index, see llms.txt. This page is also available as Markdown.

Vaults Transactions

Vault transactions for investors and managers.

Get vault deposit transaction

post
/api/v1/vaults-tx/deposit

Returns a serialized, partially-signed transaction to deposit a given amount into a vault.

Body
userstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired
amountinteger · int64Required
Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/deposit

Get share estimate

post
/api/v1/vaults-tx/simulate/deposit

Returns the estimated amount of shares for given deposit token amount.

Body
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
amountinteger · int64Required
Responses
200

Successfully fetched estimated price.

application/json
estimated_sharesinteger · int64Required
estimate_for_timestring · date-timeRequired
post/api/v1/vaults-tx/simulate/deposit

Get deposit token estimate for withdrawal

post
/api/v1/vaults-tx/simulate/withdraw-in-deposit-token

Returns the estimated amount of deposit tokens for a given vToken amount when withdrawing in deposit token.

Body
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vtoken_amountinteger · int64Required
Responses
200

Successfully fetched estimated deposit tokens.

application/json
estimated_deposit_tokensnumber · doubleRequired
estimate_for_timestring · date-timeRequired
post/api/v1/vaults-tx/simulate/withdraw-in-deposit-token

Get proportional token estimate for withdrawal

post
/api/v1/vaults-tx/simulate/withdraw

Returns the estimated amounts of each vault token for a given vToken amount when withdrawing proportionally.

Body
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vtoken_amountinteger · int64Required
Responses
200

Successfully fetched estimated token withdrawals.

application/json
estimate_for_timestring · date-timeRequired
post/api/v1/vaults-tx/simulate/withdraw

Get vault swap on Jupiter transaction

post
/api/v1/vaults-tx/swap-on-jupiter

Returns a serialized, partially-signed transaction to swap tokens on Jupiter for a given vault context.

Body
amountinteger · int64Required

Amount of input tokens to swap (in smallest unit / lamports).

managerstringRequired

Public key of the vault manager initiating the swap.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vaultstringRequired

Public key of the vault to swap tokens for.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
input_mintstringRequired

Mint address of the token being swapped from.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
output_mintstringRequired

Mint address of the token being swapped to.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired

A recent Solana blockhash, base58-encoded. Fetch via getLatestBlockhash.

Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/swap-on-jupiter

Get vault swap to deposit token on Jupiter transaction

post
/api/v1/vaults-tx/swap-to-deposit-token-on-jupiter

Returns a serialized, partially-signed transaction to swap tokens on Jupiter to deposit token for a given vault context.

Body
amountinteger · int64Required

Amount of input tokens to swap (in smallest unit / lamports).

vaultstringRequired

Public key of the vault to swap tokens for.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
input_mintstringRequired

Mint address of the token being swapped from.

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired

A recent Solana blockhash, base58-encoded. Fetch via getLatestBlockhash.

Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/swap-to-deposit-token-on-jupiter

Get vault withdraw transaction

post
/api/v1/vaults-tx/withdraw

Returns a serialized, partially-signed transaction to withdraw a given amount into a vault.

Body
userstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired
amountinteger · int64Required
Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/withdraw

Get vault withdraw-in-deposit-token transaction

post
/api/v1/vaults-tx/withdraw-in-deposit-token

Returns a serialized, partially-signed transaction to withdraw a given amount of deposit token into a vault.

Body
userstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vaultstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired
amountinteger · int64Required
Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/withdraw-in-deposit-token

Get vault CreateVault transaction

post
/api/v1/vaults-tx/create-vault

Returns a serialized, partially-signed transaction to create a vault.

Body
namestringRequiredExample: VaultName
symbolstringRequiredExample: VAULT
uristringRequiredExample: https://vault.starke.xyz
vtoken_is_transferrablebooleanRequired
max_allowed_auminteger · nullableOptional
initial_vtoken_priceinteger · int32Required
management_fee_rateinteger · int32Required
max_depositorsinteger · int32Required
allow_unknownbooleanRequired
allow_entitybooleanRequired
allow_individualbooleanRequired
allow_basicbooleanRequired
allow_accreditedbooleanRequired
allow_qualifiedbooleanRequired
unknown_min_depositinteger · int32Required
unknown_max_depositinteger · int32Required
entity_min_depositinteger · int32Required
entity_max_depositinteger · int32Required
individual_min_depositinteger · int32Required
individual_max_depositinteger · int32Required
managerstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
deposit_token_mintstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
transfer_hook_programstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired
Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/create-vault

Get vault CloseVault transaction

post
/api/v1/vaults-tx/close-vault

Returns a serialized, partially-signed transaction to close a vault.

Body
managerstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
vault_idstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
transfer_hook_programstringRequired

Base-58 encoded Solana Pubkey

Example: 11zmYTukqmpe19rRc6oC5PWzFGZrH1dyBmUb4qpnxp
recent_blockhashstringRequired
Responses
200

Successfully formed transaction.

text/plain
stringOptional
post/api/v1/vaults-tx/close-vault

Last updated

Was this helpful?