-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
priority: highNext up - important for milestoneNext up - important for milestonerepo: interxsize: L3-5 days3-5 daysstatus: readyReady to be worked onReady to be worked ontype: featureNew functionalityNew functionality
Description
Feature Description
Implement the direction (or directions) filter for the /api/transactions endpoint to filter transactions by inbound/outbound direction relative to a specified address.
This is a split from issue #41 to track this specific feature.
Requested Behavior
Similar to Etherscan's in and out transaction filters:
# Filter inbound transactions to an address
/api/transactions?address=kira1...&direction=inbound
# Filter outbound transactions from an address
/api/transactions?address=kira1...&direction=outboundImplementation Notes
Direction filtering requires:
- An
addressparameter must be provided (direction is relative to an address) - Check message type and address fields to determine direction:
- Inbound: Address appears in
to_addressfield - Outbound: Address appears in
from_addressfield
- Inbound: Address appears in
Current State
directionsfield is defined inQueryTxsParamsstruct but not implemented- Parameter format discussed:
?direction=inboundor?direction=outbound
Location
manager/types/cosmos.go:182- struct field existsmanager/gateway/cosmos_agregated3.go- needs implementation
References
- Parent issue: 🐛 Transaction Query Filters Not Implemented or Broken #41
- Discussion: Bugfix/41 #56 (comment)
Acceptance Criteria
- Direction filter implemented (
inbound/outbound) - Requires
addressparameter when using direction - Works with all message types that have address fields
- Tests added for direction filtering
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: highNext up - important for milestoneNext up - important for milestonerepo: interxsize: L3-5 days3-5 daysstatus: readyReady to be worked onReady to be worked ontype: featureNew functionalityNew functionality