My goal is to get a list of account names of human users of a dApp, from the output of
cleos get actions <dApp account name> -j
Is there any way to determine, from a transaction's initial action's authorization and auth_sequence fields, whether the transaction was initiated by the account user(by signing the transaction with the active private key) or as a deferred action by the account's contract code?
The closest answer I can find details the authorization difference between contract-initiated and user-initiated transactions but I still have no idea of how to differentiate these by looking at a transaction JSON.
I thought of checking whether or not an account has non-0 code hash, but I'd be missing out on accounts that have contract code as well as being used by their owner to interact with the dApp.