I'm trying to add custom RPC
to Substrate node template.
As explained in the jsonrpsee's proc_macro doc here, I define BalancesApi
trait where #[rpc(server)] attribute added, and implement BalancesApiServer
to the struct Balances
.
I expect that macro implements into_rpc
behind the scenes. However, compiler says no method named into_rpc
found for struct Balances
in the current scope.
If I expand macro, I can see into_rpc
trait is generated,
How can I implement in on BalancesApi
struct which will be used in create_full
function? Some additional procedure is required?
Just an additional info, This is my working branch https://github.com/AstarNetwork/swanky-node/pull/67