Skip to content

Proposal: Transaction Simulation β€” preview before signingΒ #270

Description

@grikomsn

Summary

Add transaction simulation capabilities so users can preview transaction results before signing, preventing failed transactions and enabling accurate gas estimation.

Proposed API

const simulation = await useSimulateTransaction({
  type: "send",
  amount: "1000",
  denom: "uatom",
  to: recipientAddress,
});

// simulation.success, simulation.gasUsed, simulation.events

Motivation

  • Prevent failed transactions
  • Accurate gas estimation
  • Better UX
  • Cost savings

Source

Originally proposed in notes/legacy/IMPROVEMENT_DESIGN.md (Section 6).

Priority: Low | Effort: Medium | Status: Proposed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions