Repository navigation
fix: 改进 BioForest 交易历史查询和错误处理 - #89
Merged
Merged
Conversation
- Fix getTransactionHistory to use correct API format:
- First fetch lastblock to get maxHeight
- Use proper query parameters (maxHeight, address, page, pageSize, sort)
- Parse correct response format { trs: TransactionDetail[] }
- Filter for transfer transactions (AST-01, AST-02)
- Extract amount from transaction.asset.transferAsset
- Add @bfmeta/sign-util package for future SDK integration
- Improve error messages in submitBioforestTransfer:
- Log errors for debugging
- Provide clearer error messages for broadcast failures
Note: Full BioForest transfer requires @bnqkl/bioforest-chain-bundle SDK
which is currently private/proprietary. Transaction creation may fail
until proper SDK integration is implemented.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
修复交易历史查询 (问题4)
{ trs: TransactionDetail[] }transaction.asset.transferAsset提取金额改进错误处理 (问题3 部分修复)
@bfmeta/sign-util包为后续 SDK 集成做准备未解决的问题
完整的 BioForest 转账需要
@bnqkl/bioforest-chain-bundleSDK,该 SDK 目前是私有的。已创建 Issue #88 跟踪 SDK 集成需求。
测试
Relates to #88