use sp_runtime::traits::Block as BlockT; sp_api::decl_runtime_apis! { pub trait Api { fn test(); } } fn main() {}