Description
When doing rpc calls with number parameters, bigint values need to be stringified, so you'd write {amount: bigintAmount.toString()}.
This is unintuitive, and the types also don't allow this.
Suggested solution
Do the JSON.stringify with a visitor that converts bigint to string, and change the generated type for number values to numbe | bigint
Alternative
keep the status quo
Additional context
No response
Validations
Description
When doing rpc calls with number parameters,
bigintvalues need to be stringified, so you'd write{amount: bigintAmount.toString()}.This is unintuitive, and the types also don't allow this.
Suggested solution
Do the JSON.stringify with a visitor that converts bigint to string, and change the generated type for number values to
numbe | bigintAlternative
keep the status quo
Additional context
No response
Validations