Struct mango_v4_client::ClientConfig
source · pub struct ClientConfig {Show 14 fields
pub cluster: Cluster,
pub fee_payer: Option<Arc<Keypair>>,
pub commitment: CommitmentConfig,
pub timeout: Duration,
pub jupiter_timeout: Duration,
pub transaction_builder_config: TransactionBuilderConfig,
pub rpc_send_transaction_config: RpcSendTransactionConfig,
pub rpc_confirm_transaction_config: RpcConfirmTransactionConfig,
pub jupiter_v6_url: String,
pub jupiter_token: String,
pub sanctum_url: String,
pub sanctum_timeout: Duration,
pub fallback_oracle_config: FallbackOracleConfig,
pub override_send_transaction_urls: Option<Vec<String>>,
}
Fields§
§cluster: Cluster
RPC url
Defaults to Cluster::Mainnet, using the public crowded mainnet-beta rpc endpoint. Should usually be overridden with a custom rpc endpoint.
fee_payer: Option<Arc<Keypair>>
Transaction fee payer. Needs to be set to send transactions.
commitment: CommitmentConfig
Commitment for interacting with the chain. Defaults to processed.
timeout: Duration
Timeout, defaults to 60s
This timeout applies to rpc requests. Note that the timeout for transaction confirmation is configured separately in rpc_confirm_transaction_config.
jupiter_timeout: Duration
Jupiter Timeout, defaults to 30s
This timeout applies to jupiter requests.
transaction_builder_config: TransactionBuilderConfig
§rpc_send_transaction_config: RpcSendTransactionConfig
Defaults to a preflight check at processed commitment
rpc_confirm_transaction_config: RpcConfirmTransactionConfig
Defaults to waiting up to 60s for confirmation
jupiter_v6_url: String
§jupiter_token: String
§sanctum_url: String
§sanctum_timeout: Duration
Sanctum Timeout, defaults to 30s
This timeout applies to jupiter requests.
fallback_oracle_config: FallbackOracleConfig
Determines how fallback oracle accounts are provided to instructions. Defaults to Dynamic.
override_send_transaction_urls: Option<Vec<String>>
If set, don’t use cluster
for sending transactions and send to all
addresses configured here instead.
Trait Implementations§
source§impl Clone for ClientConfig
impl Clone for ClientConfig
source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl !UnwindSafe for ClientConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
source§impl<T> DerefOrBorrow<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrow<T> for Twhere T: ?Sized,
fn deref_or_borrow(&self) -> &T
source§impl<T> DerefOrBorrowMut<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrowMut<T> for Twhere T: ?Sized,
fn deref_or_borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request