macro_rules! register_rpc_methods {
($api:expr, $($method:expr),* $(,)?) => { ... };
}Expand description
Register RPC methods with the node on connect.
Call this after connecting via ModuleIntegration::connect. Pass the node API and
the method names (as string literals) that were registered with #[rpc_method(name = "...")].
§Example
ⓘ
let integration = ModuleIntegration::connect(...).await?;
let node_api = integration.node_api();
register_rpc_methods!(node_api, "hello_greet", "hello_status").await?;