Solana Farms RPC Service
Get:
/// Returns Token metadata from Github
/api/v1/git_token?name=[name]/// Returns all Tokens from Github
/api/v1/git_tokens/// Returns the Vault struct for the given name
/api/v1/vault?name=[name]/// Returns all Vaults available
/api/v1/vaults/// Returns the Vault metadata address for the given name
/api/v1/vault_ref?name=[name]/// Returns Vault refs: a map of Vault name to account address with metadata
/api/v1/vault_refs/// Loads the Vault struct data from the specified metadata address
/api/v1/vault_by_ref?vault_ref=[vault_ref]/// Returns the Vault name for the given metadata address
/api/v1/vault_name?vault_ref=[vault_ref]/// Returns all Vaults with tokens A and B sorted by version
/api/v1/find_vaults?token_a=[token_a]&token_b=[token_b]/// Returns the Pool struct for the given name
/api/v1/pool?name=[name]/// Returns all Pools available
/api/v1/pools/// Returns the Pool metadata address for the given name
/api/v1/pool_ref?name=[name]/// Returns Pool refs: a map of Pool name to account address with metadata
/api/v1/pool_refs/// Loads the Pool struct data from the specified metadata address
/api/v1/pool_by_ref?pool_ref=[pool_ref]/// Returns the Pool name for the given metadata address
/api/v1/pool_name?pool_ref=[pool_ref]/// Returns all Pools with tokens A and B sorted by version for the given protocol
/api/v1/find_pools?protocol=[protocol]&token_a=[token_a]&token_b=[token_b]/// Returns all Pools sorted by version for the given LP token
/api/v1/find_pools_with_lp?lp_token=[lp_token]/// Returns pair's price based on the ratio of tokens in the pool
/api/v1/pool_price?name=[name]/// Returns the Farm struct for the given name
/api/v1/farm?name=[name]/// Returns all Farms available
/api/v1/farms/// Returns the Farm metadata address for the given name
/api/v1/farm_ref?name=[name]/// Returns Farm refs: a map of Farm name to account address with metadata
/api/v1/farm_refs/// Loads the Farm struct data from the specified metadata address
/api/v1/farm_by_ref?farm_ref=[farm_ref]/// Returns the Farm name for the given metadata address
/api/v1/farm_name?farm_ref=[farm_ref]/// Returns all Farms sorted by version for the given LP token
/api/v1/find_farms_with_lp?lp_token=[lp_token]/// Returns the Token struct for the given name
/api/v1/token?name=[name]/// Returns all Tokens available
/api/v1/tokens/// Returns the Token metadata address for the given name
/api/v1/token_ref?name=[name]/// Returns Token refs: a map of Token name to account address with metadata
/api/v1/token_refs/// Loads the Token struct data from the specified metadata address
/api/v1/token_by_ref?token_ref=[token_ref]/// Returns the Token name for the given metadata address
/api/v1/token_name?token_ref=[token_ref]/// Returns the Token metadata for the specified mint
/api/v1/token_with_mint?token_mint=[token_mint]/// Returns the official Program ID for the given name
/api/v1/program_id?name=[name]/// Returns all official Program IDs available
/api/v1/program_ids/// Returns the official program name for the given Program ID
/api/v1/program_name?prog_id=[prog_id]/// Checks if the given address is the official Program ID
/api/v1/is_official_id?prog_id=[prog_id]/// Closes existing system account
/api/v1/close_system_account?wallet_keypair=[wallet_keypair]&target_account_keypair=[target_account_keypair]/// Returns the associated token account address for the given token name
/api/v1/associated_token_address?wallet_address=[wallet_address]&token_name=[token_name]/// Returns all tokens with active account in the wallet
/api/v1/wallet_tokens?wallet_address=[wallet_address]/// Returns UiTokenAccount struct data for the associated token account address
/api/v1/token_account_data?wallet_address=[wallet_address]&token_name=[token_name]/// Returns native SOL balance
/api/v1/account_balance?wallet_address=[wallet_address]/// Returns token balance for the associated token account address
/api/v1/token_account_balance?wallet_address=[wallet_address]&token_name=[token_name]/// Returns true if the associated token account exists and is initialized
/api/v1/has_active_token_account?wallet_address=[wallet_address]&token_name=[token_name]/// Returns User's stacked balance
/api/v1/user_stake_balance?wallet_address=[wallet_address]&farm_name=[farm_name]/// Returns Vault's stacked balance
/api/v1/vault_stake_balance?vault_name=[vault_name]/// Returns user stats for specific Vault
/api/v1/vault_user_info?wallet_address=[wallet_address]&vault_name=[vault_name]/// Returns Vault stats
/api/v1/vault_info?vault_name=[vault_name]/// Returns a new Instruction for creating system account
/api/v1/new_instruction_create_system_account?wallet_address=[wallet_address]&new_address=[new_address]&lamports=[lamports]&space=[space]&owner=[owner]/// Returns a new Instruction for closing system account
/api/v1/new_instruction_close_system_account?wallet_address=[wallet_address]&target_address=[target_address]/// Creates the native SOL transfer instruction
/api/v1/new_instruction_transfer?wallet_address=[wallet_address]&destination_wallet=[destination_wallet]&sol_ui_amount=[sol_ui_amount]/// Creates a tokens transfer instruction
/api/v1/new_instruction_token_transfer?wallet_address=[wallet_address]&token_name=[token_name]&destination_wallet=[destination_wallet]&ui_amount=[ui_amount]/// Creates a new Instruction for syncing token balance for the specified account
/api/v1/new_instruction_sync_token_balance?wallet_address=[wallet_address]&token_name=[token_name]/// Returns a new Instruction for creating associated token account
/api/v1/new_instruction_create_token_account?wallet_address=[wallet_address]&token_name=[token_name]/// Returns a new Instruction for closing associated token account
/api/v1/new_instruction_close_token_account?wallet_address=[wallet_address]&token_name=[token_name]/// Creates a new Instruction for initializing a new User for the Vault
/api/v1/new_instruction_add_liquidity_vault?wallet_address=[wallet_address]&vault_name=[vault_name]/// Creates a new Instruction for adding liquidity to the Vault
/api/v1/new_instruction_add_liquidity_vault?wallet_address=[wallet_address]&vault_name=[vault_name]&max_token_a_ui_amount=[max_token_a_ui_amount]&max_token_b_ui_amount=[max_token_b_ui_amount]/// Creates a new Instruction for unlocking liquidity from the Vault
/api/v1/new_instruction_unlock_liquidity_vault?wallet_address=[wallet_address]&vault_name=[vault_name]&ui_amount=[ui_amount]/// Creates a new Instruction for removing liquidity from the Vault
/api/v1/new_instruction_remove_liquidity_vault?wallet_address=[wallet_address]&vault_name=[vault_name]&ui_amount=[ui_amount]/// Creates a new Instruction for adding liquidity to the Pool
/api/v1/new_instruction_add_liquidity_pool?wallet_address=[wallet_address]&pool_name=[pool_name]&max_token_a_ui_amount=[max_token_a_ui_amount]&max_token_b_ui_amount=[max_token_b_ui_amount]/// Creates a new Instruction for removing liquidity from the Pool
/api/v1/new_instruction_remove_liquidity_pool?wallet_address=[wallet_address]&pool_name=[pool_name]&ui_amount=[ui_amount]/// Creates a new Instruction for tokens swap
/api/v1/new_instruction_swap?wallet_address=[wallet_address]&protocol=[protocol]&from_token=[from_token]&to_token=[to_token]&ui_amount_in=[ui_amount_in]&min_ui_amount_out=[min_ui_amount_out]/// Creates a new Instruction for tokens staking
/api/v1/new_instruction_stake?wallet_address=[wallet_address]&farm_name=[farm_name]&ui_amount=[ui_amount]/// Creates a new Instruction for tokens unstaking
/api/v1/new_instruction_unstake?wallet_address=[wallet_address]&farm_name=[farm_name]&ui_amount=[ui_amount]/// Creates a new Instruction for rewards harvesting
/api/v1/new_instruction_harvest?wallet_address=[wallet_address]&farm_name=[farm_name]/// Creates a new Vault Crank Instruction
/api/v1/new_instruction_crank_vault?wallet_address=[wallet_address]&vault_name=[vault_name]&step=[step]Post:
/// Creates a new system account
/api/v1/create_system_account?wallet_keypair=[wallet_keypair]&new_account_keypair=[new_account_keypair]&lamports=[lamports]&space=[space]&owner=[owner]
/// Transfers native SOL from the wallet to the destination
/api/v1/transfer?wallet_keypair=[wallet_keypair]&destination_wallet=[destination_wallet]&sol_ui_amount=[sol_ui_amount]
/// Transfers native SOL from the wallet to the associated Wrapped SOL account.
/api/v1/transfer_sol_to_wsol?wallet_keypair=[wallet_keypair]&sol_ui_amount=[sol_ui_amount]
/// Transfers tokens from the wallet to the destination
/api/v1/token_transfer?wallet_keypair=[wallet_keypair]&token_name=[token_name]&destination_wallet=[destination_wallet]&ui_amount=[ui_amount]
/// Updates token balance of the account, usefull after transfer SOL to WSOL account
/api/v1/sync_token_balance?wallet_keypair=[wallet_keypair]&token_name=[token_name]
/// Returns the associated token account or creates one if it doesn't exist
/api/v1/create_token_account?wallet_keypair=[wallet_keypair]&token_name=[token_name]
/// Closes existing token account associated with the given user's main account
/api/v1/close_token_account?wallet_keypair=[wallet_keypair]&token_name=[token_name]
/// Initializes a new User for the Vault
/api/v1/user_init_vault?wallet_keypair=[wallet_keypair]&vault_name=[vault_name]
/// Adds liquidity to the Vault
/api/v1/add_liquidity_vault?wallet_keypair=[wallet_keypair]&vault_name=[vault_name]&max_token_a_ui_amount=[max_token_a_ui_amount]&max_token_b_ui_amount=[max_token_b_ui_amount]
/// Removes liquidity from the Vault
/api/v1/remove_liquidity_vault?wallet_keypair=[wallet_keypair]&vault_name=[vault_name]&ui_amount=[ui_amount]
/// Removes unlocked liquidity from the Vault
/api/v1/remove_unlocked_liquidity_vault?wallet_keypair=[wallet_keypair]&vault_name=[vault_name]&ui_amount=[ui_amount]
/// Adds liquidity to the Pool
/api/v1/add_liquidity_pool?wallet_keypair=[wallet_keypair]&pool_name=[pool_name]&max_token_a_ui_amount=[max_token_a_ui_amount]&max_token_b_ui_amount=[max_token_b_ui_amount]
/// Removes liquidity from the Pool
/api/v1/remove_liquidity_pool?wallet_keypair=[wallet_keypair]&pool_name=[pool_name]&ui_amount=[ui_amount]
/// Swaps tokens
/api/v1/swap?wallet_keypair=[wallet_keypair]&protocol=[protocol]&from_token=[from_token]&to_token=[to_token]&ui_amount_in=[ui_amount_in]&min_ui_amount_out=[min_ui_amount_out]
/// Stakes tokens to the Farm
/api/v1/stake?wallet_keypair=[wallet_keypair]&farm_name=[farm_name]&ui_amount=[ui_amount]
/// Unstakes tokens from the Farm
/api/v1/unstake?wallet_keypair=[wallet_keypair]&farm_name=[farm_name]&ui_amount=[ui_amount]
/// Harvests rewards from the Pool
/api/v1/harvest?wallet_keypair=[wallet_keypair]&farm_name=[farm_name]
/// Cranks single Vault
/api/v1/crank_vault?wallet_keypair=[wallet_keypair]&vault_name=[vault_name]&step=[step]
/// Cranks all Vaults
/api/v1/crank_vaults?wallet_keypair=[wallet_keypair]&step=[step]