Describe the bug
When calling method in js client, like
let empId = 4026;
const result = await client.getHistory(empId);
console.log(result.total)
i have error

the problem is probably here

what's the point of validating params if we send rpcParams?
we need to check the schema of what we are sending.