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=outbound
Implementation Notes
Direction filtering requires:
- An
address parameter must be provided (direction is relative to an address)
- Check message type and address fields to determine direction:
- Inbound: Address appears in
to_address field
- Outbound: Address appears in
from_address field
Current State
directions field is defined in QueryTxsParams struct but not implemented
- Parameter format discussed:
?direction=inbound or ?direction=outbound
Location
manager/types/cosmos.go:182 - struct field exists
manager/gateway/cosmos_agregated3.go - needs implementation
References
Acceptance Criteria
Feature Description
Implement the
direction(ordirections) filter for the/api/transactionsendpoint 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
inandouttransaction filters:Implementation Notes
Direction filtering requires:
addressparameter must be provided (direction is relative to an address)to_addressfieldfrom_addressfieldCurrent State
directionsfield is defined inQueryTxsParamsstruct but not implemented?direction=inboundor?direction=outboundLocation
manager/types/cosmos.go:182- struct field existsmanager/gateway/cosmos_agregated3.go- needs implementationReferences
Acceptance Criteria
inbound/outbound)addressparameter when using direction