Skip to content

feat: split transaction fee into inclusion and resource components#241

Open
shogun444 wants to merge 1 commit into
Toolbox-Lab:mainfrom
shogun444:feat/fee-split
Open

feat: split transaction fee into inclusion and resource components#241
shogun444 wants to merge 1 commit into
Toolbox-Lab:mainfrom
shogun444:feat/fee-split

Conversation

@shogun444

Copy link
Copy Markdown
Contributor

This PR implements transaction fee breakdown analysis by extracting fee information directly from transaction XDR data.

The fee analyzer now parses TransactionEnvelope, TransactionResult, and TransactionMeta to derive total fee, inclusion fee, resource fee, and bid fee. Soroban resource fees are calculated from refundable, non-refundable, and rent fee components, while non-Soroban transactions fall back safely without errors.

The CLI output has been updated to display the actual bid fee instead of a placeholder value. Unit tests were added to cover both classic and Soroban transactions, and the full test suite passes successfully.

Closes #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split the Transaction Fee into Inclusion and Resource Components

1 participant