Hey,
I’m looking for a way to get transactions for a certain date.
Unfortunately we don’t have this option:
const transactions = await Moralis.Web3API.account.getTransactions(options);
Options:
chain
(optional): The blockchain to get data from. Valid values are listed on the intro page in the Transactions and Balances section. Default valueEth
.
address
(optional): A user address (i.e.0x1a2b3x...
). If specified, the user attached to the query is ignored and the address will be used instead.
to_block
(optional): The block number on which the balances should be checked.
address
(required): The address for which the native balance will be checked.
Guess we can do it this way, for each transaction t:
new Date(t.block_timestamp)
get the date with block_timestamp.
Save them.
Then look for transactions through saved dates.
Just asking if there is a better way?