1

I've been on this all day and can't figuring it out on my own so I'm reaching out for your help ;-)

How can I get the list of ALL the transactions associated with an account? I've tried to play around with the "getTransaction" method from eosjs but it only gives me 1 specific transaction. How can I get a list of the various transactions associated with an account?

To be more specific, my goal is to find all the transactions of a specific kind (filtering those I need by their information in the memo which should contain a JSON layout content).

Many thanks in advance for your assistance or anything that can help me unlock the situation.

13
  • cleos --url https://junglehistory.cryptolions.io:443 get actions <account_name> -1 -1 -j this return all the list transactions done by account_name. Here middle -1 means last one transaction related to this account. Commented Nov 3, 2018 at 13:56
  • For url you put the where you contract is deployed as in case of mine I deployed it on jungle test net. Commented Nov 3, 2018 at 13:57
  • Thanks for your answer, that's perfect! I'm not using cleos directly though as I'm using eosjs, an example of my syntax is: eos.getActions({account_name: 'newdexpocket', pos: '3054701', offset: '2'}).then(result => { MY_CODE });
    – Linda
    Commented Nov 5, 2018 at 17:16
  • I'd like the "pos" to be -1 but it's not working, is there a way to start from the last block? Basically the pos isn't the block but the latest action ;-)
    – Linda
    Commented Nov 5, 2018 at 17:17
  • you might be getting this error : { actions: [], last_irreversible_block: 23059136 } ? Commented Nov 6, 2018 at 7:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.