OxL Reference

error unknown-rpc

error Standard: [§10.1]

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#

oxl✓ checked in CI
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.

See also#

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides