$startingBlock
is where you want to start looking (inclursive)
- You can start looking from 0, but for better efficiency, you should remember where to start looking.
xray-cli searchlogs \
STARTING_BLOCK \
999999999 \
'{ "addresses": ["TOKEN_CONTRACT_ADDRESS"]}' \
'{"topics": ["ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}'
The event type filtered is the Transfer
event:
event Transfer(address indexed _from, address indexed _to, uint256 _value)
Look through the logs to filter by to
or from
addresses.