Function gcore::msg::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;

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