pub fn run_get(
        &self,
        address: Option<&TonAddress>,
        account: Option<JsonValue>,
        function_name: &str,
        input: Option<JsonValue>,
    ) -> TonResult<ResultOfLocalRun> {
        let mut account: RunGetAccount = account.map(|val| {
                serde_json::from_value(val.to_value()?)
                    .map_err(|_| TonErrorKind::InvalidArg("account".to_owned()))
            })
            .transpose()?
            .unwrap_or_default();
        if let Some(addr) = address {
            account.id = Some(addr.to_string());
        }
        Interop::json_request(self.context, "tvm.get", ParamsOfRunGet {
            account,
            function_name: function_name.to_string(),
            input: option_params_to_value(input)?,
        })
    }
/// Run the contract get method locally
Run the contract get method locally
Run the contract get method locally
pub fn run_get(
        &self,
        address: Option<&TonAddress>,
        account: Option<JsonValue>,
        function_name: &str,
        input: Option<JsonValue>,
    ) -> TonResult<ResultOfLocalRun> {
        let mut account: RunGetAccount = account.map(|val| {
                serde_json::from_value(val.to_value()?)
                    .map_err(|_| TonErrorKind::InvalidArg("account".to_owned()))
            })
            .transpose()?
            .unwrap_or_default();
        if let Some(addr) = address {
            account.id = Some(addr.to_string());
        }
        Interop::json_request(self.context, "tvm.get", ParamsOfRunGet {
            account,
            function_name: function_name.to_string(),
            input: option_params_to_value(input)?,
        })
    }
pub fn run_get ( & self , address : Option < & TonAddress > , account : Option < JsonValue > , function_name : & str , input : Option < JsonValue > , ) -> TonResult < ResultOfLocalRun > { let mut account : RunGetAccount = account . map ( | val | { serde_json :: from_value ( val . to_value ( ) ? ) . map_err ( | _ | TonErrorKind :: InvalidArg ( " " . to_owned ( ) ) ) } ) . transpose ( ) ? . unwrap_or_default ( ) ; if let Some ( addr ) = address { account . id = Some ( addr . to_string ( ) ) ; } Interop :: json_request ( self . context , " " , ParamsOfRunGet { account , function_name : function_name . to_string ( ) , input : option_params_to_value ( input ) ? , } ) }
Run the contract get method locally
Run the contract get method locally
&self
address
Option<&TonAddress>
account
Option<JsonValue>
function_name
&str
input
Option<JsonValue>