Skip to content

[SDK · Escrow lifecycle] Implement releaseFunds() — validation step #77

@amina69

Description

@amina69

branch off develop and make a pr to develop branch

Epic: Escrow lifecycle
Labels: escrow, tx, sdk
Size: S (~1 day)

Description

Validate release parameters before building any transaction.

Tasks

  • Validate escrowAccountId with isValidPublicKey()
  • Validate distribution with isValidDistribution()
  • Fetch escrow account from Horizon — throw EscrowNotFoundError if missing
  • Check escrow balance is sufficient — throw InsufficientBalanceError if zero
  • Return validated account record ready for transaction building
  • Unit test: each validation failure throws correct error type

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