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

filter actions instead of whole trace

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

i want to get only the actions created by the creator of the transaction but history api returns whole transaction to me,

im using the following code snippet to get the transaction

const transaction = await this.indexerRequest(
      EOS_INDEXER_API.V2.GET_TRANSACTION,
      {
        params: {
          id: transactionHash,
        },
        method: GET_METHOD,
      },
    );

example transaction

for example in here, i want to only filter the following actions, not traces, which are image

how to filter correctly? i tried to use creator_action_ordinal but thats not what i was looking for

ps: problem is v2 api, v1 seems working correctly but their json scheme also different

below is another example, where v1 returns all user actions under trx with creator_action_ordinal equals to 0, while v2 returns them mixed, with non zero creator_action_ordinal's example transaction

i need a solid solution for v2 api to get a way to filter only actions created by user like its done in v1, not whole trace

another question, is there any problem for using v1 api? is it still supported by community, and do you continue to maintain it?

thanks, Dante

dev-dantealighieri avatar Feb 03 '24 10:02 dev-dantealighieri