Skip to content

How to specify custom encoder for Tendermint RPC? #1361

@KrishnaPG

Description

@KrishnaPG

Currently the methods, such as broadcastTx etc. are hardcoded to use base64 encoding in the rpc package.

tx: Base64.encode(assertNotEmpty(params.tx)),

It would be good to let the encoding to be specified by the caller (defaulting to base64 if none specified). For example, when passing a string directly as the tx param, the base64 is throwing error (obviously). Since the Tendermint itself does not have any restriction on the encoding of Tx params, allowing the user to decide the best encoding would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions