Struct sui_rust_operator::client::Client
source · pub struct Client {
pub network: Network,
/* private fields */
}
Fields§
§network: Network
Implementations§
source§impl Client
impl Client
pub fn set_debug(&mut self)
pub async fn get_faucet(&self, recipient: String)
pub async fn send_payload( &self, payload: &Payload ) -> Result<Response, Box<dyn Error>>
pub async fn send_payload_effect( &self, payload: &Payload ) -> Result<JsonResult<TransactionEffectResult>, Box<dyn Error>>
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>>
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>>
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>>
pub async fn get_object_id( &self, object_id: &String ) -> Result<JsonResult<SimpleObject>, Box<dyn Error>>
pub async fn get_owned_objects( &self, owner_address: String, query: QueryOption, cursor: Option<String>, limit: Option<u64> ) -> Result<JsonResult<ObjectList>, Box<dyn Error>>
pub async fn get_all_balances( &self, owner_address: String ) -> Result<JsonResult<Vec<Balance>>, Box<dyn Error>>
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>>
pub async fn get_gas_list( &self, owner_address: String ) -> Result<JsonResult<CoinList>, Box<dyn Error>>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more