I'm trying to find the best way to determine whether a given transaction is a deposit.
Using wallet_account_transaction_history, we have a structure returned which contains multiple ledger entries and I'm not sure if you could have both a deposit and a withdraw inside that array?
Using blockchain_get_transaction we have an array of 'operations' inside the 'trx' field which typically contains both withdraw_op_type and deposit_op_type.
Is there an easy way to tell whether a given transaction is a deposit? Just some clarity on the subject would be great