Struct sui_rust_operator::client::Client

source ·
pub struct Client {
    pub network: Network,
    /* private fields */
}

Fields§

§network: Network

Implementations§

source§

impl Client

source

pub fn set_debug(&mut self)

source

pub async fn get_faucet(&self, recipient: String)

source

pub async fn send_payload( &self, payload: &Payload ) -> Result<Response, Box<dyn Error>>

source

pub async fn send_payload_effect( &self, payload: &Payload ) -> Result<JsonResult<TransactionEffectResult>, Box<dyn Error>>

source

pub async fn unsafe_transfer_object( &self, owner_address: &str, object_id: &str, gas_object: &str, gas_budget: u64, to_address: &str ) -> Result<JsonResult<UnsafeTransactionResult>, Box<dyn Error>>

source

pub async fn unsafe_move_call( &self, owner_address: String, package_object_id: String, module: String, function: String, type_arguments: Vec<String>, arguments: Vec<Value>, gas_object: String, gas_budget: u64 ) -> Result<JsonResult<UnsafeTransactionResult>, Box<dyn Error>>

source

pub async fn unsafe_publish( &self, owner_address: String, modules: Vec<String>, dependencies: Vec<String>, gas_object: String, gas_budget: u64 ) -> Result<JsonResult<UnsafeTransactionResult>, Box<dyn Error>>

source

pub async fn get_object_id( &self, object_id: &String ) -> Result<JsonResult<SimpleObject>, Box<dyn Error>>

source

pub async fn get_owned_objects( &self, owner_address: String, query: QueryOption, cursor: Option<String>, limit: Option<u64> ) -> Result<JsonResult<ObjectList>, Box<dyn Error>>

source

pub async fn get_all_balances( &self, owner_address: String ) -> Result<JsonResult<Vec<Balance>>, Box<dyn Error>>

source

pub async fn get_all_coins( &self, owner_address: String, coin_type: String, cursor: Option<String>, limit: Option<u64> ) -> Result<JsonResult<CoinList>, Box<dyn Error>>

source

pub async fn get_gas_list( &self, owner_address: String ) -> Result<JsonResult<CoinList>, Box<dyn Error>>

source

pub async fn get_avaliable_gas( &self, owner_address: String, amount: u64 ) -> Result<CoinInfo, Box<dyn Error>>

Auto Trait Implementations§

§

impl Freeze for Client

§

impl RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl UnwindSafe for Client

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> 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

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