source

Function source 

Source
pub fn source() -> ActorId
Expand description

Get the identifier of the message source (256-bit address).

This function is used to obtain the ActorId of the account that sends the currently processing message (either a program or a user).

ยงExamples

use gcore::msg;

#[unsafe(no_mangle)]
extern "C" fn handle() {
    let who_sends_message = msg::source();
}