Skip to content

[FRONTEND] Build token send UI inside chat #31

@codebestia

Description

@codebestia

Add a payment button (coin icon) in the MessageInput area. Clicking it opens a popover with: token amount input, recipient (pre-filled from conversation), and a confirm button. On confirm: call the token_transfer Soroban contract via Freighter, then post the transaction hash as a special message type in the chat (e.g. { type: 'transfer', amount, txHash }). Render transfer messages with a distinct card style.

Acceptance criteria:

  • Amount must be > 0
  • Freighter signing flow triggered on confirm
  • Transfer card appears in thread with amount, token, and explorer link

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions