Skip to content

support bigint parameters #2117

@wmertens

Description

@wmertens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions