-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Labels
state: backlogThis is pending further reviewThis is pending further reviewtype: enhancementNew feature or requestNew feature or request
Description
There is no action for getting deposits by address or getting withdrawals by address. These are utils that most folks should be using an indexer for but it's a good idea to offer an RPC only way of doing it too.
This could be an action like the current sdk:
getDepositsByAddress({
address: Address,
bridgeAddress: Address
startBlock,
endBlock
})
Alternatively we could reexport the abis for these events and document how to use them in viem. This is likely the best option because then it can be composed with all the existing viem methods like watchEvent.
The third alternative is to wrap existing viem methods
watchDepositEvents()
watchDepositEvents({bridgeAddress})
getBridgeDepositLogs({bridgeAddress, fromAddress, toAddress})
Metadata
Metadata
Assignees
Labels
state: backlogThis is pending further reviewThis is pending further reviewtype: enhancementNew feature or requestNew feature or request