Add support for the Filecoin.EthGetTransactionCount V2#6387
Add support for the Filecoin.EthGetTransactionCount V2#6387sudo-shashank merged 5 commits intomainfrom
Conversation
WalkthroughThis PR implements Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant RPC as EthGetTransactionCount
participant BlockResolver
participant ActorState as Actor State/Mpool
Client->>RPC: eth_getTransactionCount(address, blockParam)
alt blockParam == Pending
RPC->>ActorState: mpool.get_sequence(address)
ActorState-->>RPC: sequence
else Other Block
RPC->>BlockResolver: tipset_by_block_number_or_hash(blockParam)
BlockResolver-->>RPC: tipset
RPC->>ActorState: eth_get_transaction_count(ctx, tipset, address)
ActorState->>ActorState: Load actor from state
alt Actor is EVM Contract
ActorState-->>RPC: actor.nonce
else Other Actor Type
ActorState-->>RPC: actor.sequence
end
end
RPC-->>Client: EthUint64(nonce/sequence)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (4)📚 Learning: 2026-01-05T12:54:40.850ZApplied to files:
📚 Learning: 2026-01-05T12:56:13.802ZApplied to files:
📚 Learning: 2025-09-02T14:23:53.808ZApplied to files:
📚 Learning: 2025-09-02T10:05:34.350ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (7)
Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 14 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Summary of changes
Changes introduced in this pull request:
Filecoin.EthGetTransactionCountV2 and added test.Reference issue to close (if applicable)
Closes #6303
Other information and links
Change checklist
Summary by CodeRabbit
Release Notes
New Features
Filecoin.EthGetTransactionCountv2 API endpoint with extended block parameter support for more flexible transaction count queries.Tests
✏️ Tip: You can customize this high-level summary in your review settings.