error unknown-rpc
What it means#
Every rpc in an impl must be declared in the service contract. rpc outside the impl of a service is rejected as well.
Example#
service Math { rpc twice(x: i32) -> i32 }
impl Math {
rpc twice(x) { x * 2 }
rpc thrice(x) { x * 3 } // <- unknown-rpc
}error
unknown-rpc
How to fix#
Declare the rpc in the service or remove it from the impl.