diff --git a/lib/wallet/api/http/Cardano/Wallet/Api.hs b/lib/wallet/api/http/Cardano/Wallet/Api.hs index 5afd198d5c8..d7e382404df 100644 --- a/lib/wallet/api/http/Cardano/Wallet/Api.hs +++ b/lib/wallet/api/http/Cardano/Wallet/Api.hs @@ -604,7 +604,7 @@ type ListTransactions n = "wallets" :> QueryParam "end" Iso8601Time :> QueryParam "order" (ApiT SortOrder) :> QueryParam "max_count" ApiLimit - :> QueryParam "addressId" (ApiAddressIdT n) + :> QueryParam "address" (ApiAddressIdT n) :> QueryFlag "simple-metadata" :> Get '[JSON] [ApiTransactionT n] @@ -925,7 +925,7 @@ type ListByronTransactions n = "byron-wallets" :> QueryParam "end" Iso8601Time :> QueryParam "order" (ApiT SortOrder) :> QueryParam "max_count" ApiLimit - :> QueryParam "addressId" (ApiAddressIdT n) + :> QueryParam "address" (ApiAddressIdT n) :> Get '[JSON] [ApiTransactionT n] -- | https://cardano-foundation.github.io/cardano-wallet/api/#operation/getByronTransaction @@ -1190,7 +1190,7 @@ type ListSharedTransactions n = "shared-wallets" :> QueryParam "end" Iso8601Time :> QueryParam "order" (ApiT SortOrder) :> QueryParam "max_count" ApiLimit - :> QueryParam "addressId" (ApiAddressIdT n) + :> QueryParam "address" (ApiAddressIdT n) :> QueryFlag "simple-metadata" :> Get '[JSON] [ApiTransactionT n] diff --git a/specifications/api/swagger.yaml b/specifications/api/swagger.yaml index 39ff3efe51b..8bf97c7549e 100644 --- a/specifications/api/swagger.yaml +++ b/specifications/api/swagger.yaml @@ -4090,6 +4090,10 @@ x-parametersAddress: ¶metersAddress name: address description: | An optional address. + If given, the list of transactions will be filtered + to only contain transactions that refer to this address in their inputs or outputs. + This may exclude transactions whose inputs reference outside transactions + that are not part of the transaction history of the wallet. schema: *addressId x-parametersAddressState: ¶metersAddressState