axelarnetwork / support

Your source for support with the Axelar Network
3 stars 1 forks source link

EthOnline Question Related to Transactions for callContractWithToken. #70

Closed Olanetsoft closed 9 months ago

Olanetsoft commented 9 months ago

Hey I am participating in EthOnline hackathon and I am stuck at one place. we are making a project which will do cross chain batch transactions on just one function call. I wanted to know about the transaction hash. because as the transaction is happening in one go there is only one transaction hash and when I search the hash on axelar explorer then it show the transfer details of the last chain which I send in the function parameter. I want to get the hash of all the chains. when I search the contract address in the axelar explorer then I get the two different transactions 0x02bd9d5fee28ee05783dad84c85b5a710c46c4507ed22f0532a75ba5e49245a3:66 - Polygon 0x02bd9d5fee28ee05783dad84c85b5a710c46c4507ed22f0532a75ba5e49245a3:60 - moonbase

how can I get number after the transaction only (:60 or :66) so I can differentiate the transactions for the user to trace it

Olanetsoft commented 9 months ago

The number at the end of the URL is the transaction's log index.

We do not have a specific endpoint available for querying this information. Typically, we use the transaction hash and log index as keys to retrieve other data.

However, if it's a single call you can utilize the searchGMP: https://docs.axelarscan.io/interchain/searchGMP method by specifying the transaction hash.