Function psibase::get_service

source ·
pub fn get_service() -> AccountNumber
Expand description

Get currently-executing service

If the currently-executing WASM is a service, then this returns the service’s account. If the currently-executing code is not WASM, or is not a service, then this returns 0.