Skip to content

Proposal: Transaction Builder API β€” fluent createTransaction() interfaceΒ #267

Description

@grikomsn

Summary

Fluent transaction builder API to simplify complex transactions and fee estimation.

Proposed API

const tx = await createTransaction()
  .from(account.bech32Address)
  .send({ amount: "1000", denom: "uatom", to: recipientAddress })
  .withMemo("Payment for services")
  .withAutoFee()
  .build();

await tx.sign().broadcast();

Motivation

  • Simpler API for common operations
  • Automatic fee estimation
  • Transaction composition
  • Better error messages

Source

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

Priority: Medium | 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