/// 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
<not_specific>
address
&TonAddress
<not_specific>
abi
JsonValue
<not_specific>
function_name
&str
<not_specific>
header
Option<JsonValue>
<not_specific>
input
JsonValue
<not_specific>
keys
Option<&Ed25519KeyPair>
<not_specific>
try_index
Option<u8>
<not_specific>