Skip to content

Construct the "Fund Organization" Transaction Builder #35

Description

@AlAfiz

Description

When a user wants to donate to an organization's public budget, the frontend must construct the raw Soroban XDR transaction and send it to Freighter.

Acceptance Criteria

  • Create a useFundOrg React hook.
  • The hook accepts orgId and amount.
  • Utilize StellarSdk.Contract to build the fund_org contract call envelope.
  • Simulate the transaction against the Soroban RPC to calculate required fees and resources.
  • Pass the simulated XDR to freighterApi.signTransaction().
  • Submit the signed transaction to the network and return the result.

Technical Details

  • The frontend should NEVER sign the transaction itself using a secret key. It must strictly delegate the XDR to Freighter.

Metadata

Metadata

Assignees

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