@@ -1115,6 +1115,7 @@ export class AccountController {
11151115 @ApiQuery ( { name : 'isScCall' , description : 'Returns sc call transactions details' , required : false , type : Boolean } )
11161116 @ApiQuery ( { name : 'senderOrReceiver' , description : 'One address that current address interacted with' , required : false } )
11171117 @ApiQuery ( { name : 'withRefunds' , description : 'Include refund transactions' , required : false } )
1118+ @ApiQuery ( { name : 'withTxsRelayedByAddress' , description : 'Include transactions that were relayed by the address' , required : false } )
11181119 async getAccountTransfersCount (
11191120 @Param ( 'address' , ParseAddressPipe ) address : string ,
11201121 @Query ( 'sender' , ParseAddressArrayPipe ) sender ?: string [ ] ,
@@ -1132,6 +1133,7 @@ export class AccountController {
11321133 @Query ( 'senderOrReceiver' , ParseAddressPipe ) senderOrReceiver ?: string ,
11331134 @Query ( 'isScCall' , ParseBoolPipe ) isScCall ?: boolean ,
11341135 @Query ( 'withRefunds' , ParseBoolPipe ) withRefunds ?: boolean ,
1136+ @Query ( 'withTxsRelayedByAddress' , ParseBoolPipe ) withTxsRelayedByAddress ?: boolean ,
11351137 ) : Promise < number > {
11361138 return await this . transferService . getTransfersCount ( new TransactionFilter ( {
11371139 address,
@@ -1150,6 +1152,7 @@ export class AccountController {
11501152 round,
11511153 isScCall,
11521154 withRefunds,
1155+ withTxsRelayedByAddress,
11531156 } ) ) ;
11541157 }
11551158
@@ -1172,6 +1175,7 @@ export class AccountController {
11721175 @Query ( 'senderOrReceiver' , ParseAddressPipe ) senderOrReceiver ?: string ,
11731176 @Query ( 'withRefunds' , ParseBoolPipe ) withRefunds ?: boolean ,
11741177 @Query ( 'isScCall' , ParseBoolPipe ) isScCall ?: boolean ,
1178+ @Query ( 'withTxsRelayedByAddress' , ParseBoolPipe ) withTxsRelayedByAddress ?: boolean ,
11751179 ) : Promise < number > {
11761180 return await this . transferService . getTransfersCount ( new TransactionFilter ( {
11771181 address,
@@ -1190,6 +1194,7 @@ export class AccountController {
11901194 round,
11911195 withRefunds,
11921196 isScCall,
1197+ withTxsRelayedByAddress,
11931198 } ) ) ;
11941199 }
11951200
0 commit comments