Skip to content

[tx-simulate] how to get the txBytes data #99

@marslavish

Description

@marslavish

Context: I was fixing the max button issue from the stake-tokens example (to get the actual max amount which is the available balance minus the gas fee), and I noticed that Keplr uses this request /cosmos/tx/v1beta1/simulate to estimate the gas probably, but an uint8array type of data needs to be passed into the txBytes property

Question: how can I turn the transaction message (or any other data needed) into the uint8array data?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions