pub fn construct_call_ext_in_message_json(
        address: MsgAddressInt,
        params: FunctionCallSet,
        key_pair: Option<&Keypair>,
    ) -> Result<SdkMessage> {
        // pack params into bag of cells via ABI
        let msg_body = ton_abi::encode_function_call(
            params.abi,
            params.func,
            params.header,
            params.input,
            false,
            key_pair,
        )?;

        let msg = Self::create_ext_in_message(address.clone(), msg_body.into_cell()?.into())?;
        let (body, id) = Self::serialize_message(&msg)?;
        Ok(SdkMessage {
            id,
            serialized_message: body,
            message: msg,
            address,
        })
    }
// Packs given inputs by abi into an external inbound Message struct.
// Works with json representation of input and abi.
// Returns message's bag of cells and identifier.
Packs given inputs by abi into an external inbound Message struct.
Works with json representation of input and abi.
Returns message's bag of cells and identifier.
Packs given inputs by abi into an external inbound Message struct . Works with json representation of input and abi . Returns message ' s bag of cells and identifier .
pub fn construct_call_ext_in_message_json(
        address: MsgAddressInt,
        params: FunctionCallSet,
        key_pair: Option<&Keypair>,
    ) -> Result<SdkMessage> {
        // pack params into bag of cells via ABI
        let msg_body = ton_abi::encode_function_call(
            params.abi,
            params.func,
            params.header,
            params.input,
            false,
            key_pair,
        )?;
        let msg = Self::create_ext_in_message(address.clone(), msg_body.into_cell()?.into())?;
        let (body, id) = Self::serialize_message(&msg)?;
        Ok(SdkMessage {
            id,
            serialized_message: body,
            message: msg,
            address,
        })
    }
pub fn construct_call_ext_in_message_json ( address : MsgAddressInt , params : FunctionCallSet , key_pair : Option < & Keypair > , ) -> Result < SdkMessage > { // pack params into bag of cells via ABI let msg_body = ton_abi :: encode_function_call ( params . abi , params . func , params . header , params . input , false , key_pair , ) ? ; let msg = Self :: create_ext_in_message ( address . clone ( ) , msg_body . into_cell ( ) ? . into ( ) ) ? ; let ( body , id ) = Self :: serialize_message ( & msg ) ? ; Ok ( SdkMessage { id , serialized_message : body , message : msg , address , } ) }
Packs given inputs by abi into an external inbound Message struct.
Packs given inputs by abi into an external inbound Message struct .
address
MsgAddressInt
params
FunctionCallSet
key_pair
Option<&Keypair>