-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One endpoint to get AE token transfers filtered by contractId
and accountId
#1678
Comments
contractId
and accountId
We have this endpoint |
The |
Transactions from this endpoint will not be shown in the |
@CedrikNikita the /txs/ endpoint filters does not do any interpretation of the contract calls. contract calls have only two field that reference an address: the caller it and the contract id, these are the only two thing that you can filter by when using |
Hello, we would like to request an endpoint that returns all transactions (incoming/outgoing) in a list for an account and a desired token. Is there one provided (or to be implemented) that can fulfil our need for SH Wallet? Thanks |
@sborrazas If you are not able to update the Right now the wallet team can choose between these 3 options:
Edit: Here are the screens from our app to visualise where exactly we need the new endpoint.
|
Thanks for explaining it further. This is my interpretation of these endpoints:
This last alternative is what we can implement next. |
This last alternative is what initial issue was about. We were asking exactly that behaviour. To get all specific contract related transactions for an account with one call. |
@sborrazas yes, your summary gets to the heart of the problem. And I agree with you and Nikita that the 3rd option would probably be the best one. I only don't understand why there is |
Hi. Did you make any progress with this topic? |
I just checked the AEx9 transfers endpoint and you can actually get the transfers (both as sender OR receiver) using the This way you don't need to make 2 requests to get the transfers as sender |
Thank you @sborrazas for your research. We'll test this and come back with the results. |
@peronczyk any updates? |
This endpoint missing several type of transactions. It might be related to For example: this contract
but the token balance for this contract and this address in not 0
And there is a transaction that actually resulted in adding some amount of this token to the users "account" Maybe this whole comment should be moved as another issue. @sborrazas What do you think? |
Hi. This entry is a follow up to this issue: #1580
Currently the @aeternity/superhero team is working on handling not only AE protocol, but also Bitcoin and Ethereum. This requires us to avoid hacks and protocol specific workarounds so the wallet is as plugabble as it can be.
As @CedrikNikita mentioned in his comment (#1580 (comment)) having two separate endpoints for
sender
andreceiver
is not usable for us. We are not able to keep two separate next page urls when trying to obtain one list. It would be possible if our wallet would be focused on AE protocol only, but we need to keep a lot of data and splitting the calls makes our work insanely hard. Please see for example how Etherscan is handling this: https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc20-token-transfer-events-by-address - if we provide thecontractaddress
param we receive the list of all transactions for this particular token.So maybe there is a possibility of having one endpoint for fetching all token transactions?
The text was updated successfully, but these errors were encountered: