Subnet: Get pending withdrawal (STX, FT, NFTs) for address
The withdrawal of assets from L2 happen in two steps: call stx-withdraw? on L2 and then call withdraw-stx on L1 (function names might change).
At any point, we should be able to retrieve pending withdrawals. It can be done by fetching withdraw transactions . But more logic is needed to fetch all transactions and filter out already completed withdrawals.
Should this logic be implemented at the API level?
Current implementation on the demo app: https://github.com/hirosystems/subnets-nft-demo/blob/main/src/stacks/apiCalls.ts#L175-L254
We can revisit this depending on the Subnet reception and the feedback or perceived expensiveness.