Skip to main content

HttpClient

Struct HttpClient 

Source
pub struct HttpClient { /* private fields */ }
Expand description

HTTP client for making API requests

Implementations§

Source§

impl HttpClient

Source

pub fn new() -> Self

Create a new HTTP client with default configuration

Source

pub fn with_config(enable_tracing: bool) -> Self

Create a new HTTP client with custom configuration

Source

pub fn with_base_url(self, base_url: impl Into<String>) -> Self

Set the base URL for all requests

Source

pub fn with_api_key(self, api_key: impl Into<String>) -> Self

Set the API key for authentication

Source

pub fn with_max_response_body_bytes(self, limit: usize) -> Self

Set the maximum number of response-body bytes buffered in memory.

Source

pub fn with_header( self, name: impl Into<String>, value: impl Into<String>, ) -> Self

Add a custom header to all requests

Source

pub fn with_headers(self, headers: BTreeMap<String, String>) -> Self

Add multiple custom headers

Source§

impl HttpClient

Source

pub async fn get_build( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: impl AsRef<str>, slippage_bps: Option<impl AsRef<str>>, mode: Option<GetBuildMode>, dexes: Option<impl AsRef<str>>, exclude_dexes: Option<impl AsRef<str>>, platform_fee_bps: Option<i64>, fee_account: Option<impl AsRef<str>>, max_accounts: Option<i64>, payer: Option<impl AsRef<str>>, wrap_and_unwrap_sol: Option<bool>, destination_token_account: Option<impl AsRef<str>>, native_destination_account: Option<impl AsRef<str>>, blockhash_slots_to_expiry: Option<i64>, tip_amount: Option<impl AsRef<str>>, compute_unit_price_percentile: Option<impl AsRef<str>>, for_jito_bundle: Option<bool>, ) -> Result<GetBuildResponse, ApiOpError<GetBuildApiError>>

Build Transaction

Get a swap quote with raw instructions for building custom transactions. This is the advanced path for integrators who need full transaction control (add custom instructions, CPI, custom payer).

You are responsible for assembling the transaction, signing, and sending via your own RPC. The /execute endpoint is not available for /build transactions.

Routing is Metis only. No swap fees are charged by Jupiter.

GET /swap/v2/build

Source

pub async fn get_order( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: Option<impl AsRef<str>>, receiver: Option<impl AsRef<str>>, swap_mode: Option<GetOrderSwapMode>, slippage_bps: Option<i64>, referral_account: Option<impl AsRef<str>>, referral_fee: Option<f64>, payer: Option<impl AsRef<str>>, priority_fee_lamports: Option<f64>, jito_tip_lamports: Option<f64>, broadcast_fee_type: Option<GetOrderBroadcastFeeType>, exclude_routers: Option<impl AsRef<str>>, exclude_dexes: Option<impl AsRef<str>>, ) -> Result<GetOrderResponse, ApiOpError<GetOrderApiError>>

Get Order

Get a swap quote and assembled transaction. This is the default happy path with all Ultra benefits (predictive execution, RTSE, Jupiter Beam, gasless, multi-router competition).

Without optional parameters, all routers compete for the best price (Metis, JupiterZ RFQ, Dflow, OKX). Setting payer to a wallet different from taker restricts routing to Metis.

GET /swap/v2/order

Source

pub async fn post_execute( &self, request: PostExecuteRequest, ) -> Result<PostExecuteResponse, ApiOpError<PostExecuteApiError>>

Execute Transaction

Execute a signed transaction from /order. Handles transaction landing, confirmation, and retry.

Only available for transactions obtained via /order. Transactions built via /build must be sent through your own RPC.

POST /swap/v2/execute

Source

pub async fn program_id_to_label_get( &self, ) -> Result<ProgramIdToLabelGetResponse, ApiOpError<Value>>

program-id-to-label

Returns a hash, which key is the program id and value is the label. This is used to help map error from transaction by identifying the fault program id. This can be used in conjunction with the excludeDexes or dexes parameter.

GET /swap/v1/program-id-to-label

Source

pub async fn quote_get( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: u64, slippage_bps: Option<i64>, swap_mode: Option<QuoteGetSwapMode>, dexes: Option<Vec<String>>, exclude_dexes: Option<Vec<String>>, restrict_intermediate_tokens: Option<bool>, only_direct_routes: Option<bool>, as_legacy_transaction: Option<bool>, platform_fee_bps: Option<i64>, max_accounts: Option<u64>, instruction_version: Option<QuoteGetInstructionVersion>, dynamic_slippage: Option<bool>, for_jito_bundle: Option<bool>, ) -> Result<SwapV1QuoteResponse, ApiOpError<Value>>

quote

Request for a quote to be used in POST /swap

GET /swap/v1/quote

Source

pub async fn swap_instructions_post( &self, request: SwapV1SwapRequest, ) -> Result<SwapV1SwapInstructionsResponse, ApiOpError<Value>>

swap-instructions

Request for swap instructions that you can use from the quote you get from /quote

POST /swap/v1/swap-instructions

Source

pub async fn swap_post( &self, request: SwapV1SwapRequest, ) -> Result<SwapV1SwapResponse, ApiOpError<Value>>

swap

Request for a base64-encoded unsigned swap transaction based on the /quote response

POST /swap/v1/swap

Source

pub async fn build_borrow_operate_instructions( &self, market: Option<LendBorrowMarket>, request: LendBorrowOperatePayload, ) -> Result<LendBorrowOperateInstructionsResponse, ApiOpError<Value>>

Build operate instructions

Returns Solana instructions and lookup table addresses for a borrow operate action.

POST /lend/v1/borrow/operate-instructions

Source

pub async fn build_borrow_operate_transaction( &self, market: Option<LendBorrowMarket>, request: LendBorrowOperatePayload, ) -> Result<LendBorrowOperateTransactionResponse, ApiOpError<Value>>

Build unsigned operate transaction

Builds a base64-encoded unsigned versioned transaction for a borrow operate action.

Positive colAmount / debtAmount values deposit collateral or borrow debt. Negative values withdraw collateral or pay back debt.

POST /lend/v1/borrow/operate

Source

pub async fn cancel_order( &self, request: RecurringCloseRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>

cancelOrder

Request for a base64-encoded unsigned recurring order cancellation transaction to be used in POST /recurring/v1/execute

POST /recurring/v1/cancelOrder

Source

pub async fn create_order( &self, request: RecurringCreateRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>

createOrder

Request for a base64-encoded unsigned recurring order creation transaction to be used in POST /recurring/v1/execute

POST /recurring/v1/createOrder

Source

pub async fn delete_prediction_v1_positions( &self, request: PredictionCloseAllPositionsRequest, ) -> Result<DeletePredictionV1PositionsResponse, ApiOpError<DeletePredictionV1PositionsApiError>>

DELETE /prediction/v1/positions

Source

pub async fn delete_prediction_v1_positions_position_pubkey( &self, position_pubkey: impl AsRef<str>, request: PredictionClosePositionRequest, ) -> Result<PredictionCreateOrderResponse, ApiOpError<DeletePredictionV1PositionsPositionPubkeyApiError>>

DELETE /prediction/v1/positions/{positionPubkey}

Source

pub async fn execute( &self, request: RecurringExecuteRecurring, ) -> Result<RecurringExecuteRecurringResponse, ApiOpError<Value>>

execute

Execute the signed transaction and get the execution status

POST /recurring/v1/execute

Source

pub async fn get_lend_v1_earn_earnings( &self, user: impl AsRef<str>, positions: impl AsRef<str>, ) -> Result<LendUserEarningsResponse, ApiOpError<Value>>

earnings

Request for the earnings of one or multiple positions of a user

GET /lend/v1/earn/earnings

Source

pub async fn get_lend_v1_earn_positions( &self, users: impl AsRef<str>, ) -> Result<LendUserPositionsResponse, ApiOpError<Value>>

positions

Request for the position data of one or multiple users

GET /lend/v1/earn/positions

Source

pub async fn get_lend_v1_earn_tokens( &self, ) -> Result<LendTokensResponse, ApiOpError<Value>>

tokens

Request for the tokens available to be deposited and their information

GET /lend/v1/earn/tokens

Source

pub async fn get_portfolio_v1_platforms( &self, ) -> Result<GetPortfolioV1PlatformsResponse, ApiOpError<Value>>

GET /portfolio/v1/platforms

Source

pub async fn get_portfolio_v1_positions_address( &self, address: impl AsRef<str>, platforms: Option<impl AsRef<str>>, ) -> Result<GetPortfolioV1PositionsAddressResponse, ApiOpError<Value>>

GET /portfolio/v1/positions/{address}

Source

pub async fn get_portfolio_v1_staked_jup_address( &self, address: impl AsRef<str>, ) -> Result<GetPortfolioV1StakedJupAddressResponse, ApiOpError<Value>>

GET /portfolio/v1/staked-jup/{address}

Source

pub async fn get_prediction_v1_events( &self, provider: Option<GetPredictionV1EventsProvider>, include_markets: Option<bool>, include_all_markets: Option<bool>, start: Option<i64>, end: Option<i64>, category: Option<GetPredictionV1EventsCategory>, subcategory: Option<impl AsRef<str>>, sort_by: Option<GetPredictionV1EventsSortBy>, sort_direction: Option<GetPredictionV1EventsSortDirection>, filter: Option<GetPredictionV1EventsFilter>, tags: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1EventsResponse, ApiOpError<Value>>

GET /prediction/v1/events

Source

pub async fn get_prediction_v1_events_event_id( &self, event_id: impl AsRef<str>, include_markets: Option<bool>, include_all_markets: Option<bool>, ) -> Result<PredictionEvent, ApiOpError<GetPredictionV1EventsEventIdApiError>>

GET /prediction/v1/events/{eventId}

Source

pub async fn get_prediction_v1_events_event_id_markets( &self, event_id: impl AsRef<str>, start: Option<i64>, end: Option<i64>, ) -> Result<GetPredictionV1EventsEventIdMarketsResponse, ApiOpError<Value>>

GET /prediction/v1/events/{eventId}/markets

Source

pub async fn get_prediction_v1_events_event_id_markets_market_id( &self, event_id: impl AsRef<str>, market_id: impl AsRef<str>, ) -> Result<PredictionMarket, ApiOpError<GetPredictionV1EventsEventIdMarketsMarketIdApiError>>

GET /prediction/v1/events/{eventId}/markets/{marketId}

Source

pub async fn get_prediction_v1_events_event_id_score( &self, event_id: impl AsRef<str>, ) -> Result<PredictionGameScore, ApiOpError<Value>>

GET /prediction/v1/events/{eventId}/score

Source

pub async fn get_prediction_v1_events_scores( &self, event_ids: impl AsRef<str>, ) -> Result<GetPredictionV1EventsScoresResponse, ApiOpError<Value>>

GET /prediction/v1/events/scores

GET /prediction/v1/events/search

Source

pub async fn get_prediction_v1_events_suggested_pubkey( &self, pubkey: impl AsRef<str>, provider: Option<GetPredictionV1EventsSuggestedPubkeyProvider>, ) -> Result<GetPredictionV1EventsSuggestedPubkeyResponse, ApiOpError<Value>>

GET /prediction/v1/events/suggested/{pubkey}

Source

pub async fn get_prediction_v1_forecast( &self, market_id: impl AsRef<str>, ) -> Result<GetPredictionV1ForecastResponse, ApiOpError<GetPredictionV1ForecastApiError>>

GET /prediction/v1/forecast

Source

pub async fn get_prediction_v1_history( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, id: Option<i64>, position_pubkey: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1HistoryResponse, ApiOpError<Value>>

GET /prediction/v1/history

Source

pub async fn get_prediction_v1_leaderboards( &self, period: Option<GetPredictionV1LeaderboardsPeriod>, limit: Option<i64>, metric: Option<GetPredictionV1LeaderboardsMetric>, ) -> Result<GetPredictionV1LeaderboardsResponse, ApiOpError<Value>>

GET /prediction/v1/leaderboards

Source

pub async fn get_prediction_v1_markets_market_id( &self, market_id: impl AsRef<str>, ) -> Result<PredictionMarket, ApiOpError<GetPredictionV1MarketsMarketIdApiError>>

GET /prediction/v1/markets/{marketId}

Source

pub async fn get_prediction_v1_orderbook_market_id( &self, market_id: impl AsRef<str>, ) -> Result<GetPredictionV1OrderbookMarketIdResponse, ApiOpError<GetPredictionV1OrderbookMarketIdApiError>>

GET /prediction/v1/orderbook/{marketId}

Source

pub async fn get_prediction_v1_orders( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, ) -> Result<GetPredictionV1OrdersResponse, ApiOpError<GetPredictionV1OrdersApiError>>

GET /prediction/v1/orders

Source

pub async fn get_prediction_v1_orders_order_pubkey( &self, order_pubkey: impl AsRef<str>, ) -> Result<PredictionOrder, ApiOpError<GetPredictionV1OrdersOrderPubkeyApiError>>

GET /prediction/v1/orders/{orderPubkey}

Source

pub async fn get_prediction_v1_orders_status_order_pubkey( &self, order_pubkey: impl AsRef<str>, ) -> Result<GetPredictionV1OrdersStatusOrderPubkeyResponse, ApiOpError<GetPredictionV1OrdersStatusOrderPubkeyApiError>>

GET /prediction/v1/orders/status/{orderPubkey}

Source

pub async fn get_prediction_v1_positions( &self, start: Option<i64>, end: Option<i64>, owner_pubkey: Option<impl AsRef<str>>, market_pubkey: Option<impl AsRef<str>>, market_id: Option<impl AsRef<str>>, is_yes: Option<GetPredictionV1PositionsIsYes>, ) -> Result<GetPredictionV1PositionsResponse, ApiOpError<GetPredictionV1PositionsApiError>>

GET /prediction/v1/positions

Source

pub async fn get_prediction_v1_positions_position_pubkey( &self, position_pubkey: impl AsRef<str>, ) -> Result<PredictionPosition, ApiOpError<GetPredictionV1PositionsPositionPubkeyApiError>>

GET /prediction/v1/positions/{positionPubkey}

Source

pub async fn get_prediction_v1_profiles_owner_pubkey( &self, owner_pubkey: impl AsRef<str>, ) -> Result<GetPredictionV1ProfilesOwnerPubkeyResponse, ApiOpError<GetPredictionV1ProfilesOwnerPubkeyApiError>>

GET /prediction/v1/profiles/{ownerPubkey}

Source

pub async fn get_prediction_v1_profiles_owner_pubkey_pnl_history( &self, owner_pubkey: impl AsRef<str>, interval: Option<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryInterval>, count: Option<i64>, ) -> Result<GetPredictionV1ProfilesOwnerPubkeyPnlHistoryResponse, ApiOpError<Value>>

GET /prediction/v1/profiles/{ownerPubkey}/pnl-history

Source

pub async fn get_prediction_v1_trades( &self, ) -> Result<GetPredictionV1TradesResponse, ApiOpError<Value>>

GET /prediction/v1/trades

Source

pub async fn get_prediction_v1_trading_status( &self, ) -> Result<PredictionTradingStatusResponse, ApiOpError<Value>>

GET /prediction/v1/trading-status

Source

pub async fn get_prediction_v1_vault_info( &self, ) -> Result<GetPredictionV1VaultInfoResponse, ApiOpError<GetPredictionV1VaultInfoApiError>>

GET /prediction/v1/vault-info

Source

pub async fn get_price_v2( &self, ids: impl AsRef<str>, vs_token: Option<impl AsRef<str>>, show_extra_info: Option<impl AsRef<str>>, ) -> Result<PriceV2PriceResponse, ApiOpError<Value>>

price

Returns prices of specified tokens. Price V2 API is deprecated, please use Price V3 API instead.

GET /price/v2/

Source

pub async fn get_price_v3( &self, ids: impl AsRef<str>, ) -> Result<GetPriceV3Response, ApiOpError<Value>>

price

Get USD prices for up to 50 tokens per request. Tokens without a reliable price are omitted from the response.

GET /price/v3

Source

pub async fn get_recurring_v1_get_recurring_orders( &self, recurring_type: RecurringRecurringOrderType, order_status: RecurringOrderState, user: impl AsRef<str>, page: i64, mint: impl AsRef<str>, include_failed_tx: bool, ) -> Result<RecurringGetRecurringOrderResponse, ApiOpError<Value>>

getRecurringOrders

GET /recurring/v1/getRecurringOrders

Source

pub async fn get_send_v1_invite_history( &self, address: impl AsRef<str>, page: Option<i64>, ) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1InviteHistoryApiError>>

invite-history

Request for the invite history of an address

GET /send/v1/invite-history

Source

pub async fn get_send_v1_pending_invites( &self, address: impl AsRef<str>, page: Option<i64>, ) -> Result<SendInviteDataResponse, ApiOpError<GetSendV1PendingInvitesApiError>>

pending-invites

Request for the pending invites of an address

GET /send/v1/pending-invites

Source

pub async fn get_studio_v1_dbc_pool_addresses_mint( &self, mint: impl AsRef<str>, ) -> Result<GetStudioV1DbcPoolAddressesMintResponse, ApiOpError<GetStudioV1DbcPoolAddressesMintApiError>>

dbc-pool-addresses-by-mint

Request for pool addresses for a given token mint

GET /studio/v1/dbc-pool/addresses/{mint}

Source

pub async fn get_tokens_v1_all( &self, ) -> Result<GetTokensV1AllResponse, ApiOpError<Value>>

all

Returns all tokens with all metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/all

Source

pub async fn get_tokens_v1_market_market_address_mints( &self, market_address: impl AsRef<str>, ) -> Result<GetTokensV1MarketMarketAddressMintsResponse, ApiOpError<Value>>

mints in market

Returns the mints involved in a market. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/market/{market_address}/mints

Source

pub async fn get_tokens_v1_mints_tradable( &self, ) -> Result<GetTokensV1MintsTradableResponse, ApiOpError<Value>>

tradable

Returns a list of all mints tradable via Jupiter routing. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/mints/tradable

Source

pub async fn get_tokens_v1_new( &self, limit: Option<i64>, offset: Option<i64>, ) -> Result<GetTokensV1NewResponse, ApiOpError<Value>>

new

Returns new tokens with metadata, created at timestamp and markets. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/new

Source

pub async fn get_tokens_v1_tagged_tag( &self, tag: impl AsRef<str>, ) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>

tagged

Returns a list of mints with specified tag(s) along with their metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/tagged/{tag}

Source

pub async fn get_tokens_v1_token_mint_address( &self, mint_address: impl AsRef<str>, ) -> Result<TokensV1MintIncludingDuplicates, ApiOpError<Value>>

token information

Returns the specified mint address’s token information and metadata. Tokens API V1 is deprecated, please use Tokens API V2 instead.

GET /tokens/v1/token/{mint_address}

Source

pub async fn get_tokens_v2_category_interval( &self, category: GetTokensV2CategoryIntervalCategory, interval: GetTokensV2CategoryIntervalInterval, limit: Option<i64>, ) -> Result<GetTokensV2CategoryIntervalResponse, ApiOpError<GetTokensV2CategoryIntervalApiError>>

category

Returns an array of mints and their information for the given category and interval

GET /tokens/v2/{category}/{interval}

Source

pub async fn get_tokens_v2_recent( &self, ) -> Result<GetTokensV2RecentResponse, ApiOpError<GetTokensV2RecentApiError>>

recent

Returns an array of mints that recently had their first created pool

  • Default to 30 mints in response

GET /tokens/v2/recent

search

Request a search by token’s symbol, name or mint address

GET /tokens/v2/search

Source

pub async fn get_tokens_v2_tag( &self, query: GetTokensV2TagQuery, ) -> Result<GetTokensV2TagResponse, ApiOpError<GetTokensV2TagApiError>>

tag

Request an array of mints and their information by a tag

  • Note that this will return the entire array of existing mints that belongs to the tag.

GET /tokens/v2/tag

Source

pub async fn get_tokens_v2_verify_express_check_eligibility( &self, token_id: impl AsRef<str>, ) -> Result<TokensV2VerificationCheckEligibilityResponse, ApiOpError<GetTokensV2VerifyExpressCheckEligibilityApiError>>

Check express verification eligibility

Checks whether a token is eligible for express verification and metadata updates. If both canVerify and canMetadata are false, any submission will be rejected before payment is charged.

GET /tokens/v2/verify/express/check-eligibility

Source

pub async fn get_tokens_v2_verify_express_craft_txn( &self, sender_address: impl AsRef<str>, payment_currency: Option<TokensV2VerificationPaymentCurrency>, ) -> Result<TokensV2VerificationCraftTxnResponse, ApiOpError<GetTokensV2VerifyExpressCraftTxnApiError>>

Craft express verification payment transaction

Returns an unsigned Solana transaction worth 1000 JUP as payment for express verification. JUP transfers directly; SOL, USDC, and JUPUSD craft an Ultra swap to 1000 JUP. The requestId in the response is required for the execute step.

GET /tokens/v2/verify/express/craft-txn

Source

pub async fn get_trigger_v1_get_trigger_orders( &self, user: impl AsRef<str>, page: Option<impl AsRef<str>>, include_failed_tx: Option<GetTriggerV1GetTriggerOrdersIncludeFailedTx>, order_status: GetTriggerV1GetTriggerOrdersOrderStatus, input_mint: Option<impl AsRef<str>>, output_mint: Option<impl AsRef<str>>, ) -> Result<GetTriggerV1GetTriggerOrdersResponse, ApiOpError<Value>>

getTriggerOrders

Request for the active or historical orders associated to the provided account

GET /trigger/v1/getTriggerOrders

Source

pub async fn get_trigger_v2_orders_history( &self, state: Option<GetTriggerV2OrdersHistoryState>, mint: Option<impl AsRef<str>>, limit: Option<f64>, offset: Option<f64>, sort: Option<GetTriggerV2OrdersHistorySort>, dir: Option<GetTriggerV2OrdersHistoryDir>, ) -> Result<GetTriggerV2OrdersHistoryResponse, ApiOpError<Value>>

Get order history

Retrieve paginated order history for the authenticated wallet. Filter by state, mint, and sort order.

GET /trigger/v2/orders/history

Source

pub async fn get_trigger_v2_orders_history_dca( &self, state: Option<GetTriggerV2OrdersHistoryDcaState>, mint: Option<impl AsRef<str>>, limit: Option<f64>, offset: Option<f64>, sort: Option<GetTriggerV2OrdersHistoryDcaSort>, dir: Option<GetTriggerV2OrdersHistoryDcaDir>, ) -> Result<GetTriggerV2OrdersHistoryDcaResponse, ApiOpError<Value>>

List DCA orders

List the authenticated wallet’s DCA orders with full event history.

GET /trigger/v2/orders/history/dca

Source

pub async fn get_trigger_v2_orders_history_dca_id( &self, id: impl AsRef<str>, ) -> Result<TriggerV2DcaHistoryItem, ApiOpError<Value>>

Get DCA order

Get a single DCA order by ID, including fill history and events. The path requires the dca segment.

GET /trigger/v2/orders/history/dca/{id}

Source

pub async fn get_trigger_v2_vault( &self, ) -> Result<GetTriggerV2VaultResponse, ApiOpError<Value>>

Get vault info

Retrieve the vault associated with your authenticated wallet.

GET /trigger/v2/vault

Source

pub async fn get_trigger_v2_vault_register( &self, ) -> Result<GetTriggerV2VaultRegisterResponse201, ApiOpError<GetTriggerV2VaultRegisterApiError>>

Register a new vault

Create a new Privy-managed vault wallet for your account. Call this once per wallet. Subsequent calls return the existing vault.

GET /trigger/v2/vault/register

Source

pub async fn get_ultra_v1_balances_address( &self, address: impl AsRef<str>, ) -> Result<GetUltraV1BalancesAddressResponse, ApiOpError<GetUltraV1BalancesAddressApiError>>

balances

Request for token balances of an account

GET /ultra/v1/balances/{address}

Source

pub async fn get_ultra_v1_holdings_address( &self, address: impl AsRef<str>, ) -> Result<UltraHoldingsResponse, ApiOpError<Value>>

holdings

Request for token balances of an account including token account information

GET /ultra/v1/holdings/{address}

Source

pub async fn get_ultra_v1_holdings_address_native( &self, address: impl AsRef<str>, ) -> Result<UltraNativeHoldingsResponse, ApiOpError<Value>>

holdings (native)

Request for native SOL holdings only, without other tokens

GET /ultra/v1/holdings/{address}/native

Source

pub async fn get_ultra_v1_order( &self, input_mint: impl AsRef<str>, output_mint: impl AsRef<str>, amount: impl AsRef<str>, taker: Option<impl AsRef<str>>, receiver: Option<impl AsRef<str>>, payer: Option<impl AsRef<str>>, close_authority: Option<impl AsRef<str>>, referral_account: Option<impl AsRef<str>>, referral_fee: Option<f64>, exclude_routers: Option<GetUltraV1OrderExcludeRouters>, exclude_dexes: Option<impl AsRef<str>>, ) -> Result<GetUltraV1OrderResponse, ApiOpError<GetUltraV1OrderApiError>>

order

Request for a base64-encoded unsigned swap transaction to be used in POST /ultra/v1/execute

GET /ultra/v1/order

Source

pub async fn get_ultra_v1_order_routers( &self, ) -> Result<GetUltraV1OrderRoutersResponse, ApiOpError<Value>>

routers

Request for the list of routers available in the routing engine of Ultra, which is Juno

GET /ultra/v1/order/routers

search

Request a search by token’s symbol, name or mint address

GET /ultra/v1/search

Source

pub async fn get_ultra_v1_shield( &self, mints: impl AsRef<str>, ) -> Result<GetUltraV1ShieldResponse, ApiOpError<GetUltraV1ShieldApiError>>

shield

Request for token information and warnings of mints

GET /ultra/v1/shield

Source

pub async fn list_borrow_positions( &self, users: impl AsRef<str>, market: Option<LendBorrowMarket>, ) -> Result<ListBorrowPositionsResponse, ApiOpError<Value>>

List borrow positions for users

Returns borrow positions (NFTs) for one or more wallet addresses.

Pass multiple wallets as a comma-separated list in the users query parameter.

GET /lend/v1/borrow/positions

Source

pub async fn list_borrow_vaults( &self, market: Option<LendBorrowMarket>, rpc_url: Option<impl AsRef<str>>, ) -> Result<ListBorrowVaultsResponse, ApiOpError<Value>>

List borrow vaults

Returns all whitelisted borrow vaults for the requested market.

GET /lend/v1/borrow/vaults

Source

pub async fn patch_trigger_v2_orders_price_order_id( &self, order_id: impl AsRef<str>, request: PatchTriggerV2OrdersPriceOrderIdRequest, ) -> Result<PatchTriggerV2OrdersPriceOrderIdResponse, ApiOpError<Value>>

Update price order

Update trigger price or slippage of an existing order.

PATCH /trigger/v2/orders/price/{orderId}

Source

pub async fn post_lend_v1_earn_deposit( &self, request: LendEarnAmountRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>

deposit

Request for a base64-encoded unsigned earn deposit transaction to deposit assets

POST /lend/v1/earn/deposit

Source

pub async fn post_lend_v1_earn_deposit_instructions( &self, request: LendEarnAmountRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>

deposit-instructions

Request for the instruction of an earn deposit transaction to deposit assets

POST /lend/v1/earn/deposit-instructions

Source

pub async fn post_lend_v1_earn_mint( &self, request: LendEarnSharesRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>

mint

Request for a base64-encoded unsigned earn mint transaction to mint shares

POST /lend/v1/earn/mint

Source

pub async fn post_lend_v1_earn_mint_instructions( &self, request: LendEarnSharesRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>

mint-instructions

Request for the instruction of an earn mint transaction to mint shares

POST /lend/v1/earn/mint-instructions

Source

pub async fn post_lend_v1_earn_redeem( &self, request: LendEarnSharesRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>

redeem

Request for a base64-encoded unsigned earn redeem transaction to redeem shares

POST /lend/v1/earn/redeem

Source

pub async fn post_lend_v1_earn_redeem_instructions( &self, request: LendEarnSharesRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>

redeem-instructions

Request for the instruction of an earn redeem transaction to redeem shares

POST /lend/v1/earn/redeem-instructions

Source

pub async fn post_lend_v1_earn_withdraw( &self, request: LendEarnAmountRequestBody, ) -> Result<LendTransactionResponse, ApiOpError<Value>>

withdraw

Request for a base64-encoded unsigned earn withdraw transaction to withdraw assets

POST /lend/v1/earn/withdraw

Source

pub async fn post_lend_v1_earn_withdraw_instructions( &self, request: LendEarnAmountRequestBody, ) -> Result<LendInstructionResponse, ApiOpError<Value>>

withdraw-instructions

Request for the instruction of an earn withdraw transaction to withdraw assets

POST /lend/v1/earn/withdraw-instructions

Source

pub async fn post_prediction_v1_execute( &self, request: PredictionExecuteRequest, ) -> Result<PredictionExecuteResponse, ApiOpError<PostPredictionV1ExecuteApiError>>

Execute a signed order transaction

Submit a signed order transaction for execution. Pass the base64 signedTransaction together with the execution.context object returned by the order build (POST /orders, or DELETE /positions/{positionPubkey} for a sell), unchanged. Jupiter Forecast (bisonfi) orders execute as an atomic swap through this endpoint and the transaction signature is returned on success.

POST /prediction/v1/execute

Source

pub async fn post_prediction_v1_orders( &self, request: PredictionCreateOrderRequest, ) -> Result<PredictionCreateOrderResponse, ApiOpError<PostPredictionV1OrdersApiError>>

POST /prediction/v1/orders

Source

pub async fn post_prediction_v1_positions_position_pubkey_claim( &self, position_pubkey: impl AsRef<str>, request: PredictionClaimPositionRequest, ) -> Result<PredictionClaimPositionResponse, ApiOpError<PostPredictionV1PositionsPositionPubkeyClaimApiError>>

POST /prediction/v1/positions/{positionPubkey}/claim

Source

pub async fn post_send_v1_craft_clawback( &self, request: PostSendV1CraftClawbackRequest, ) -> Result<PostSendV1CraftClawbackResponse, ApiOpError<PostSendV1CraftClawbackApiError>>

craft-clawback

Request for a base64-encoded unsigned Send transaction

POST /send/v1/craft-clawback

Source

pub async fn post_send_v1_craft_send( &self, request: PostSendV1CraftSendRequest, ) -> Result<PostSendV1CraftSendResponse, ApiOpError<PostSendV1CraftSendApiError>>

craft-send

Request for a base64-encoded unsigned Send transaction

POST /send/v1/craft-send

Source

pub async fn post_studio_v1_dbc_fee( &self, request: Option<PostStudioV1DbcFeeRequest>, ) -> Result<PostStudioV1DbcFeeResponse, ApiOpError<PostStudioV1DbcFeeApiError>>

dbc-fee

Request for unclaimed creator trading fees of a Dynamic Bonding Curve pool

POST /studio/v1/dbc/fee

Source

pub async fn post_studio_v1_dbc_fee_create_tx( &self, request: Option<StudioCreateClaimFeeDBCTransactionRequestBody>, ) -> Result<PostStudioV1DbcFeeCreateTxResponse, ApiOpError<PostStudioV1DbcFeeCreateTxApiError>>

dbc-fee-create-tx

Request for a base64-encoded unsigned transaction to claim creator trading fees of a Dynamic Bonding Curve pool

  • Handles both direct creator ownership and proxy-based ownership.

POST /studio/v1/dbc/fee/create-tx

Source

pub async fn post_studio_v1_dbc_pool_create_tx( &self, request: Option<StudioCreateDBCTransactionRequestBody>, ) -> Result<StudioCreateDBCTransactionResponse, ApiOpError<PostStudioV1DbcPoolCreateTxApiError>>

dbc-pool-create-tx

Request for a base64-encoded unsigned transaction to create a Dynamic Bonding Curve pool with token metadata

POST /studio/v1/dbc-pool/create-tx

Source

pub async fn post_studio_v1_dbc_pool_submit( &self, request: Option<StudioSubmitDBCTransactionRequestBody>, ) -> Result<PostStudioV1DbcPoolSubmitResponse, ApiOpError<PostStudioV1DbcPoolSubmitApiError>>

dbc-pool-submit

Execute the signed transaction, and optionally upload content and header image

POST /studio/v1/dbc-pool/submit

Source

pub async fn post_tokens_v2_verify_express_execute( &self, request: TokensV2VerificationExpressExecuteBody, ) -> Result<TokensV2VerificationExpressExecuteResponse, ApiOpError<PostTokensV2VerifyExpressExecuteApiError>>

Execute express verification

Submits the signed payment transaction, records the payment, creates a verification request, and optionally submits token metadata updates. Verification and metadata updates are reviewed independently.

POST /tokens/v2/verify/express/execute

Source

pub async fn post_trigger_v1_cancel_order( &self, request: Option<PostTriggerV1CancelOrderRequest>, ) -> Result<PostTriggerV1CancelOrderResponse, ApiOpError<PostTriggerV1CancelOrderApiError>>

cancelOrder

Request for a base64-encoded unsigned trigger order cancellation transaction to be used in POST /trigger/v1/execute

POST /trigger/v1/cancelOrder

Source

pub async fn post_trigger_v1_cancel_orders( &self, request: Option<PostTriggerV1CancelOrdersRequest>, ) -> Result<PostTriggerV1CancelOrdersResponse, ApiOpError<PostTriggerV1CancelOrdersApiError>>

cancelOrders

Request for a base64-encoded unsigned trigger order cancellation transaction(s) to be used in POST /trigger/v1/execute

POST /trigger/v1/cancelOrders

Source

pub async fn post_trigger_v1_create_order( &self, request: Option<PostTriggerV1CreateOrderRequest>, ) -> Result<PostTriggerV1CreateOrderResponse, ApiOpError<PostTriggerV1CreateOrderApiError>>

createOrder

Request for a base64-encoded unsigned trigger order creation transaction to be used in POST /trigger/v1/execute

POST /trigger/v1/createOrder

Source

pub async fn post_trigger_v1_execute( &self, request: PostTriggerV1ExecuteRequest, ) -> Result<PostTriggerV1ExecuteResponse, ApiOpError<PostTriggerV1ExecuteApiError>>

execute

Execute the signed transaction and get the execution status

POST /trigger/v1/execute

Source

pub async fn post_trigger_v2_auth_challenge( &self, request: PostTriggerV2AuthChallengeRequest, ) -> Result<PostTriggerV2AuthChallengeResponse, ApiOpError<PostTriggerV2AuthChallengeApiError>>

Request authentication challenge

Request a challenge to sign with your wallet. Use message for standard wallets or transaction for hardware wallets that only support transaction signing. Challenges expire after 5 minutes.

POST /trigger/v2/auth/challenge

Source

pub async fn post_trigger_v2_auth_verify( &self, request: PostTriggerV2AuthVerifyRequest, ) -> Result<PostTriggerV2AuthVerifyResponse, ApiOpError<PostTriggerV2AuthVerifyApiError>>

Verify signed challenge and receive JWT

Submit the signed challenge to receive a JWT token valid for 24 hours. Include the JWT in all subsequent authenticated requests via the Authorization: Bearer header.

POST /trigger/v2/auth/verify

Source

pub async fn post_trigger_v2_deposit_craft( &self, request: PostTriggerV2DepositCraftRequest, ) -> Result<PostTriggerV2DepositCraftResponse, ApiOpError<PostTriggerV2DepositCraftApiError>>

Craft deposit transaction

Build an unsigned transaction to deposit tokens from your wallet into your vault. The vault address is automatically resolved from your JWT token.

POST /trigger/v2/deposit/craft

Source

pub async fn post_trigger_v2_orders_dca( &self, request: PostTriggerV2OrdersDcaRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<PostTriggerV2OrdersDcaApiError>>

Create DCA order

Create a dollar-cost averaging order that splits a single deposit into orderCount equal rounds executed every intervalSeconds. Submit the signed deposit transaction from /deposit/craft (crafted with orderType: "dca").

Call this path with no trailing slash. POST /orders/dca/ returns 404.

Rounds execute as Jupiter swaps with Ultra-managed (RTSE) slippage; there is no slippage parameter. Each round pays the standard Jupiter swap fee (no separate DCA fee), and the output settles directly to the taker’s wallet.

POST /trigger/v2/orders/dca

Source

pub async fn post_trigger_v2_orders_dca_cancel_id( &self, id: impl AsRef<str>, ) -> Result<PostTriggerV2OrdersDcaCancelIdResponse, ApiOpError<Value>>

Initiate DCA cancellation

Step 1 of the two-step cancellation. Moves the order to withdrawing and returns an unsigned withdrawal transaction for the unfilled remainder. Already-filled rounds are not reversed.

POST /trigger/v2/orders/dca/cancel/{id}

Source

pub async fn post_trigger_v2_orders_dca_confirm_cancel_id( &self, id: impl AsRef<str>, request: PostTriggerV2OrdersDcaConfirmCancelIdRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>

Confirm DCA cancellation

Step 2 of the two-step cancellation. Submit the signed withdrawal transaction to return the remaining funds and move the order to cancelled.

POST /trigger/v2/orders/dca/confirm-cancel/{id}

Source

pub async fn post_trigger_v2_orders_price( &self, request: PostTriggerV2OrdersPriceRequest, ) -> Result<TriggerV2OrderResponse, ApiOpError<PostTriggerV2OrdersPriceApiError>>

Create price order

Create a new price order. Supports three order types:

  • single: triggers when price crosses above/below threshold
  • oco: one-cancels-other (take-profit + stop-loss pair)
  • otoco: parent trigger activates a TP/SL pair on fill

POST /trigger/v2/orders/price

Source

pub async fn post_trigger_v2_orders_price_cancel_order_id( &self, order_id: impl AsRef<str>, ) -> Result<PostTriggerV2OrdersPriceCancelOrderIdResponse, ApiOpError<Value>>

Initiate order cancellation

Step 1 of the two-step cancellation flow. Returns a withdrawal transaction that must be signed and submitted via the confirm-cancel endpoint.

POST /trigger/v2/orders/price/cancel/{orderId}

Source

pub async fn post_trigger_v2_orders_price_confirm_cancel_order_id( &self, order_id: impl AsRef<str>, request: PostTriggerV2OrdersPriceConfirmCancelOrderIdRequest, ) -> Result<TriggerV2TxSignatureResponse, ApiOpError<Value>>

Confirm order cancellation

Step 2 of the two-step cancellation flow. Submit the signed withdrawal transaction to complete the cancellation and return funds to your wallet.

POST /trigger/v2/orders/price/confirm-cancel/{orderId}

Source

pub async fn post_ultra_v1_execute( &self, request: Option<PostUltraV1ExecuteRequest>, ) -> Result<PostUltraV1ExecuteResponse, ApiOpError<PostUltraV1ExecuteApiError>>

execute

Execute the signed transaction and get the execution status

POST /ultra/v1/execute

Source

pub async fn price_deposit( &self, request: RecurringDepositPriceRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>

priceDeposit

Request for a base64-encoded unsigned price-based recurring order deposit transaction to be used in POST /recurring/v1/execute. Price-based recurring orders are deprecated, please use time-based recurring orders instead.

POST /recurring/v1/priceDeposit

Source

pub async fn price_withdraw( &self, request: RecurringWithdrawPriceRecurring, ) -> Result<RecurringRecurringResponse, ApiOpError<Value>>

priceWithdraw

Request for a base64-encoded unsigned price-based recurring order withdrawal transaction to be used in POST /recurring/v1/execute. Price-based recurring orders are deprecated, please use time-based recurring orders instead.

POST /recurring/v1/priceWithdraw

Source

pub fn get_build_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, taker: impl Into<String>, ) -> GetBuildBuilder<'_>

Start an additive builder for GetBuild.

Source

pub fn get_order_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, ) -> GetOrderBuilder<'_>

Start an additive builder for GetOrder.

Source

pub fn post_execute_builder( &self, request_id: String, signed_transaction: String, ) -> PostExecuteBuilder<'_>

Start an additive builder for PostExecute.

Source

pub fn quote_get_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: u64, ) -> QuoteGetBuilder<'_>

Start an additive builder for QuoteGet.

Source

pub fn swap_instructions_post_builder( &self, quote_response: SwapV1QuoteResponse, user_public_key: String, ) -> SwapInstructionsPostBuilder<'_>

Start an additive builder for SwapInstructionsPost.

Source

pub fn swap_post_builder( &self, quote_response: SwapV1QuoteResponse, user_public_key: String, ) -> SwapPostBuilder<'_>

Start an additive builder for SwapPost.

Source

pub fn build_borrow_operate_instructions_builder( &self, col_amount: String, debt_amount: String, position_id: i64, signer: String, vault_id: i64, ) -> BuildBorrowOperateInstructionsBuilder<'_>

Start an additive builder for buildBorrowOperateInstructions.

Source

pub fn build_borrow_operate_transaction_builder( &self, col_amount: String, debt_amount: String, position_id: i64, signer: String, vault_id: i64, ) -> BuildBorrowOperateTransactionBuilder<'_>

Start an additive builder for buildBorrowOperateTransaction.

Source

pub fn delete_prediction_v1_positions_builder( &self, min_sell_price_slippage_bps: f64, ) -> DeletePredictionV1PositionsBuilder<'_>

Start an additive builder for deletePredictionV1Positions.

Source

pub fn delete_prediction_v1_positions_position_pubkey_builder( &self, position_pubkey: impl Into<String>, ) -> DeletePredictionV1PositionsPositionPubkeyBuilder<'_>

Start an additive builder for deletePredictionV1PositionsPositionPubkey.

Source

pub fn get_portfolio_v1_positions_address_builder( &self, address: impl Into<String>, ) -> GetPortfolioV1PositionsAddressBuilder<'_>

Start an additive builder for getPortfolioV1PositionsAddress.

Source

pub fn get_prediction_v1_events_builder( &self, ) -> GetPredictionV1EventsBuilder<'_>

Start an additive builder for getPredictionV1Events.

Source

pub fn get_prediction_v1_events_event_id_builder( &self, event_id: impl Into<String>, ) -> GetPredictionV1EventsEventIdBuilder<'_>

Start an additive builder for getPredictionV1EventsEventId.

Source

pub fn get_prediction_v1_events_event_id_markets_builder( &self, event_id: impl Into<String>, ) -> GetPredictionV1EventsEventIdMarketsBuilder<'_>

Start an additive builder for getPredictionV1EventsEventIdMarkets.

Source

pub fn get_prediction_v1_events_search_builder( &self, query: impl Into<String>, ) -> GetPredictionV1EventsSearchBuilder<'_>

Start an additive builder for getPredictionV1EventsSearch.

Source

pub fn get_prediction_v1_events_suggested_pubkey_builder( &self, pubkey: impl Into<String>, ) -> GetPredictionV1EventsSuggestedPubkeyBuilder<'_>

Start an additive builder for getPredictionV1EventsSuggestedPubkey.

Source

pub fn get_prediction_v1_history_builder( &self, ) -> GetPredictionV1HistoryBuilder<'_>

Start an additive builder for getPredictionV1History.

Source

pub fn get_prediction_v1_leaderboards_builder( &self, ) -> GetPredictionV1LeaderboardsBuilder<'_>

Start an additive builder for getPredictionV1Leaderboards.

Source

pub fn get_prediction_v1_orders_builder( &self, ) -> GetPredictionV1OrdersBuilder<'_>

Start an additive builder for getPredictionV1Orders.

Source

pub fn get_prediction_v1_positions_builder( &self, ) -> GetPredictionV1PositionsBuilder<'_>

Start an additive builder for getPredictionV1Positions.

Source

pub fn get_prediction_v1_profiles_owner_pubkey_pnl_history_builder( &self, owner_pubkey: impl Into<String>, ) -> GetPredictionV1ProfilesOwnerPubkeyPnlHistoryBuilder<'_>

Start an additive builder for getPredictionV1ProfilesOwnerPubkeyPnlHistory.

Source

pub fn get_price_v2_builder( &self, ids: impl Into<String>, ) -> GetPriceV2Builder<'_>

Start an additive builder for getPriceV2.

Source

pub fn get_send_v1_invite_history_builder( &self, address: impl Into<String>, ) -> GetSendV1InviteHistoryBuilder<'_>

Start an additive builder for getSendV1InviteHistory.

Source

pub fn get_send_v1_pending_invites_builder( &self, address: impl Into<String>, ) -> GetSendV1PendingInvitesBuilder<'_>

Start an additive builder for getSendV1PendingInvites.

Source

pub fn get_tokens_v1_new_builder(&self) -> GetTokensV1NewBuilder<'_>

Start an additive builder for getTokensV1New.

Source

pub fn get_tokens_v2_category_interval_builder( &self, category: GetTokensV2CategoryIntervalCategory, interval: GetTokensV2CategoryIntervalInterval, ) -> GetTokensV2CategoryIntervalBuilder<'_>

Start an additive builder for getTokensV2CategoryInterval.

Source

pub fn get_tokens_v2_verify_express_craft_txn_builder( &self, sender_address: impl Into<String>, ) -> GetTokensV2VerifyExpressCraftTxnBuilder<'_>

Start an additive builder for getTokensV2VerifyExpressCraftTxn.

Source

pub fn get_trigger_v1_get_trigger_orders_builder( &self, user: impl Into<String>, order_status: GetTriggerV1GetTriggerOrdersOrderStatus, ) -> GetTriggerV1GetTriggerOrdersBuilder<'_>

Start an additive builder for getTriggerV1GetTriggerOrders.

Source

pub fn get_trigger_v2_orders_history_builder( &self, ) -> GetTriggerV2OrdersHistoryBuilder<'_>

Start an additive builder for getTriggerV2OrdersHistory.

Source

pub fn get_trigger_v2_orders_history_dca_builder( &self, ) -> GetTriggerV2OrdersHistoryDcaBuilder<'_>

Start an additive builder for getTriggerV2OrdersHistoryDca.

Source

pub fn get_ultra_v1_order_builder( &self, input_mint: impl Into<String>, output_mint: impl Into<String>, amount: impl Into<String>, ) -> GetUltraV1OrderBuilder<'_>

Start an additive builder for getUltraV1Order.

Source

pub fn list_borrow_positions_builder( &self, users: impl Into<String>, ) -> ListBorrowPositionsBuilder<'_>

Start an additive builder for listBorrowPositions.

Source

pub fn list_borrow_vaults_builder(&self) -> ListBorrowVaultsBuilder<'_>

Start an additive builder for listBorrowVaults.

Source

pub fn patch_trigger_v2_orders_price_order_id_builder( &self, order_id: impl Into<String>, order_type: PatchTriggerV2OrdersPriceOrderIdRequestOrderType, ) -> PatchTriggerV2OrdersPriceOrderIdBuilder<'_>

Start an additive builder for patchTriggerV2OrdersPriceOrderId.

Source

pub fn post_prediction_v1_execute_builder( &self, signed_transaction: String, ) -> PostPredictionV1ExecuteBuilder<'_>

Start an additive builder for postPredictionV1Execute.

Source

pub fn post_prediction_v1_orders_builder( &self, is_buy: bool, ) -> PostPredictionV1OrdersBuilder<'_>

Start an additive builder for postPredictionV1Orders.

Source

pub fn post_prediction_v1_positions_position_pubkey_claim_builder( &self, position_pubkey: impl Into<String>, ) -> PostPredictionV1PositionsPositionPubkeyClaimBuilder<'_>

Start an additive builder for postPredictionV1PositionsPositionPubkeyClaim.

Source

pub fn post_send_v1_craft_send_builder( &self, amount: String, invite_signer: String, sender: String, ) -> PostSendV1CraftSendBuilder<'_>

Start an additive builder for postSendV1CraftSend.

Source

pub fn post_studio_v1_dbc_fee_builder(&self) -> PostStudioV1DbcFeeBuilder<'_>

Start an additive builder for postStudioV1DbcFee.

Source

pub fn post_studio_v1_dbc_fee_create_tx_builder( &self, ) -> PostStudioV1DbcFeeCreateTxBuilder<'_>

Start an additive builder for postStudioV1DbcFeeCreateTx.

Source

pub fn post_studio_v1_dbc_pool_create_tx_builder( &self, ) -> PostStudioV1DbcPoolCreateTxBuilder<'_>

Start an additive builder for postStudioV1DbcPoolCreateTx.

Source

pub fn post_studio_v1_dbc_pool_submit_builder( &self, ) -> PostStudioV1DbcPoolSubmitBuilder<'_>

Start an additive builder for postStudioV1DbcPoolSubmit.

Source

pub fn post_tokens_v2_verify_express_execute_builder( &self, description: String, request_id: String, sender_address: String, token_id: String, transaction: String, twitter_handle: String, ) -> PostTokensV2VerifyExpressExecuteBuilder<'_>

Start an additive builder for postTokensV2VerifyExpressExecute.

Source

pub fn post_trigger_v1_cancel_order_builder( &self, ) -> PostTriggerV1CancelOrderBuilder<'_>

Start an additive builder for postTriggerV1CancelOrder.

Source

pub fn post_trigger_v1_cancel_orders_builder( &self, ) -> PostTriggerV1CancelOrdersBuilder<'_>

Start an additive builder for postTriggerV1CancelOrders.

Source

pub fn post_trigger_v1_create_order_builder( &self, ) -> PostTriggerV1CreateOrderBuilder<'_>

Start an additive builder for postTriggerV1CreateOrder.

Source

pub fn post_trigger_v2_deposit_craft_builder( &self, amount: String, input_mint: String, order_type: PostTriggerV2DepositCraftRequestOrderType, output_mint: String, user_address: String, ) -> PostTriggerV2DepositCraftBuilder<'_>

Start an additive builder for postTriggerV2DepositCraft.

Source

pub fn post_trigger_v2_orders_dca_builder( &self, deposit_request_id: String, deposit_signed_tx: String, input_amount: String, input_mint: String, interval_seconds: f64, order_count: f64, output_mint: String, user_pubkey: String, ) -> PostTriggerV2OrdersDcaBuilder<'_>

Start an additive builder for postTriggerV2OrdersDca.

Source

pub fn post_trigger_v2_orders_price_builder( &self, deposit_request_id: String, deposit_signed_tx: String, expires_at: f64, input_amount: String, input_mint: String, order_type: PostTriggerV2OrdersPriceRequestOrderType, output_mint: String, trigger_mint: String, user_pubkey: String, ) -> PostTriggerV2OrdersPriceBuilder<'_>

Start an additive builder for postTriggerV2OrdersPrice.

Source

pub fn post_ultra_v1_execute_builder(&self) -> PostUltraV1ExecuteBuilder<'_>

Start an additive builder for postUltraV1Execute.

Source

pub fn price_withdraw_builder( &self, input_or_output: RecurringWithdrawal, order: String, user: String, ) -> PriceWithdrawBuilder<'_>

Start an additive builder for price-withdraw.

Trait Implementations§

Source§

impl Clone for HttpClient

Source§

fn clone(&self) -> HttpClient

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for HttpClient

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more