@@ -88,7 +88,7 @@ function TransactionInfo(props: {
88
88
< div className = "relative flex h-[48px] items-center gap-2.5 rounded-lg px-2 py-1 hover:bg-accent" >
89
89
< ChainIconClient
90
90
client = { props . client }
91
- className = "size-8"
91
+ className = "size-8 rounded-full border "
92
92
src = { chainMeta ?. icon ?. url || "" }
93
93
/>
94
94
@@ -167,20 +167,29 @@ export function TransactionsSection(props: {
167
167
const url = new URL (
168
168
`https://insight.${ isProd ? "thirdweb" : "thirdweb-dev" } .com/v1/wallets/${ account . address } /transactions` ,
169
169
) ;
170
- url . searchParams . set ( "limit" , "10 " ) ;
170
+ url . searchParams . set ( "limit" , "20 " ) ;
171
171
url . searchParams . set ( "decode" , "true" ) ;
172
172
url . searchParams . set ( "clientId" , nebulaAppThirdwebClient . clientId ) ;
173
173
174
+ const threeMonthsAgoUnixTime = Math . floor (
175
+ ( Date . now ( ) - 3 * 30 * 24 * 60 * 60 * 1000 ) / 1000 ,
176
+ ) ;
177
+
178
+ url . searchParams . set (
179
+ "filter_block_timestamp_gte" ,
180
+ `${ threeMonthsAgoUnixTime } ` ,
181
+ ) ;
182
+
174
183
for ( const chain of chains ) {
175
184
url . searchParams . append ( "chain" , chain . toString ( ) ) ;
176
185
}
177
186
178
187
const response = await fetch ( url . toString ( ) ) ;
179
188
const json = ( await response . json ( ) ) as {
180
- data : WalletTransaction [ ] ;
189
+ data ? : WalletTransaction [ ] ;
181
190
} ;
182
191
183
- return json . data ;
192
+ return json . data ?? [ ] ;
184
193
} ,
185
194
retry : false ,
186
195
enabled : ! ! account && ! ! activeChain ,
0 commit comments