Struct solana_test_validator::TestValidator [−][src]
pub struct TestValidator { /* fields omitted */ }Implementations
pub fn with_no_fees(
mint_address: Pubkey,
faucet_addr: Option<SocketAddr>,
socket_addr_space: SocketAddrSpace
) -> Self
pub fn with_no_fees(
mint_address: Pubkey,
faucet_addr: Option<SocketAddr>,
socket_addr_space: SocketAddrSpace
) -> Self
Create and start a TestValidator with no transaction fees and minimal rent.
Faucet optional.
This function panics on initialization failure.
pub fn with_custom_fees(
mint_address: Pubkey,
target_lamports_per_signature: u64,
faucet_addr: Option<SocketAddr>,
socket_addr_space: SocketAddrSpace
) -> Self
pub fn with_custom_fees(
mint_address: Pubkey,
target_lamports_per_signature: u64,
faucet_addr: Option<SocketAddr>,
socket_addr_space: SocketAddrSpace
) -> Self
Create and start a TestValidator with custom transaction fees and minimal rent.
Faucet optional.
This function panics on initialization failure.
Return the validator’s TPU address
Return the validator’s Gossip address
Return the validator’s JSON RPC PubSub URL
Return the validator’s vote account address
👎 Deprecated since 1.9.0: Please use get_rpc_client instead
Please use get_rpc_client instead
Return an RpcClient for the validator. As a convenience, also return a recent blockhash and associated fee calculator
Return an RpcClient for the validator.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TestValidator
impl Send for TestValidator
impl Sync for TestValidator
impl Unpin for TestValidator
impl !UnwindSafe for TestValidator
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Wrap the input message T in a tonic::Request
impl<T> TupleTree<T, ()> for T
impl<T> TupleTree<T, ()> for T
pub const SIZE: Size
pub fn descendants(_indirect_level: usize) -> usize
pub fn preorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
pub fn postorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
