Function gstd::msg::send_bytes_with_gas_for_reply_as

source ·
pub fn send_bytes_with_gas_for_reply_as<T: AsRef<[u8]>, D: Decode>(
    program: ActorId,
    payload: T,
    gas_limit: u64,
    value: u128,
    reply_deposit: u64,
) -> Result<CodecMessageFuture<D>>
Expand description

Same as send_bytes_with_gas, but the program will interrupt until the reply is received.

Argument reply_deposit: u64 used to provide gas for future reply handling (skipped if zero).

The output should be decodable via SCALE codec.

§See also