-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Implement custom_charges mechanism in the confirm/execute two-step transaction flow to allow users to see IPFS costs before transaction execution.
Overview
Users currently cannot see how much an IPFS operation will cost before it executes. This epic adds a custom_charges field to transactions that:
- Client includes cost estimate in tx.content BEFORE signing
- Node validates the estimate during confirmTx
- Node returns actual cost breakdown in ValidityData
- User reviews and approves before broadcastTx
- Execution charges actual cost (≤ signed max)
Key Principle
Transaction is NEVER modified by the node - client signs the max cost they agree to pay.
Affected Repositories
- Node (
/home/tcsenpai/kynesys/node): Validation, cost calculation, ValidityData enrichment - SDK (
../sdks): Types, estimation helpers, transaction building
Reference
See Serena memory: ipfs_custom_charges_implementation.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels