pub fn create_run_message(
        &self,
        address: &TonAddress,
        abi: JsonValue,
        function_name: &str,
        header: Option<JsonValue>,
        input: JsonValue,
        keys: Option<&Ed25519KeyPair>,
        try_index: Option<u8>
    ) -> TonResult<EncodedMessage> {
        Interop::json_request(self.context, "contracts.run.message", ParamsOfRun {
            address: address.clone(),
            abi: abi.to_value()?,
            function_name: function_name.to_string(),
            header: option_params_to_value(header)?,
            input: input.to_value()?,
            key_pair: keys.cloned(),
            try_index,
        })
    }
/// Create message to run the contract function with given parameters
Create message to run the contract function with given parameters
Create message to run the contract function with given parameters
pub fn create_run_message(
        &self,
        address: &TonAddress,
        abi: JsonValue,
        function_name: &str,
        header: Option<JsonValue>,
        input: JsonValue,
        keys: Option<&Ed25519KeyPair>,
        try_index: Option<u8>
    ) -> TonResult<EncodedMessage> {
        Interop::json_request(self.context, "contracts.run.message", ParamsOfRun {
            address: address.clone(),
            abi: abi.to_value()?,
            function_name: function_name.to_string(),
            header: option_params_to_value(header)?,
            input: input.to_value()?,
            key_pair: keys.cloned(),
            try_index,
        })
    }
pub fn create_run_message ( & self , address : & TonAddress , abi : JsonValue , function_name : & str , header : Option < JsonValue > , input : JsonValue , keys : Option < & Ed25519KeyPair > , try_index : Option < u8 > ) -> TonResult < EncodedMessage > { Interop :: json_request ( self . context , " " , ParamsOfRun { address : address . clone ( ) , abi : abi . to_value ( ) ? , function_name : function_name . to_string ( ) , header : option_params_to_value ( header ) ? , input : input . to_value ( ) ? , key_pair : keys . cloned ( ) , try_index , } ) }
Create message to run the contract function with given parameters
Create message to run the contract function with given parameters
&self
address
&TonAddress
abi
JsonValue
function_name
&str
header
Option<JsonValue>
input
JsonValue
keys
Option<&Ed25519KeyPair>
try_index
Option<u8>