hyperion-history-api icon indicating copy to clipboard operation
hyperion-history-api copied to clipboard

get transactions of account

Open dev-dantealighieri opened this issue 1 year ago • 1 comments

i want to get transactions of an account instead of actions but your api seems not supporting this, is there a work around for this?

I am currently fetching actions of an account, but this is not what i want, i want to get last N transactions of account with offset

const result = await this.indexerRequest(EOS_INDEXER_API.V2.GET_ACTIONS, {
  params: {
    account: address,
    limit: limit,
    skip: offset,
  },
  method: GET_METHOD,
});

dev-dantealighieri avatar Feb 06 '24 07:02 dev-dantealighieri

Hyperion was designed to store only actions, but they include the transaction id on each of them. If you want to get only the root actions of each transaction you could use a filter like /v2/history/get_actions?action_ordinal=1

igorls avatar Feb 11 '24 20:02 igorls