Skip to content
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

To migrate the qli API services available in the qubic.org API - part 1 #43

Open
5 of 6 tasks
sallymoc opened this issue Aug 1, 2024 · 9 comments
Open
5 of 6 tasks
Assignees
Milestone

Comments

@sallymoc sallymoc changed the title To update endpoints To update the code to use the archive API Aug 1, 2024
@sallymoc
Copy link
Contributor Author

sallymoc commented Aug 2, 2024

From AndyQus:

"We can start replacing the following three endpoints (as web wallet did):

  • Status
  • CurrentTick
  • Transaction over several epochs

and then continue gradually with the others."

@sallymoc sallymoc added this to the 1.2.0 milestone Aug 2, 2024
@sallymoc
Copy link
Contributor Author

sallymoc commented Aug 7, 2024

@AndyQus already did this for the web wallet and shared with us the following information:

From me: "I have a couple of additional questions. Just to have an idea of the work involved for this, in case you can help me to digest this easier. Did this work involved:
to manage different authentication for the archive-api?
this 3 services were already invoked by the app in the same way or the business logic had to be adapted?
the input and output models are different?"

Answer:
on all 3 points, yes
I would like to gradually replace the qli api.
The transactions that I now receive back from the Archiver API are either valid or not.
https://github.com/qubic/wallet/blob/release/4.7/src/app/services/api.archiver.service.ts
Here you can see the first 3 endpoints
Using getStatus we now get a list of the respective epochs with their ticks when they started and ended.

@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 2, 2024

https://rpc.qubic.org/v2/identities/{PUBLIC ADDRESS}/transfers?startTick={START TICK NUMBER
}&endTick={END TICK NUMBER}

https://rpc.qubic.org/v1/status
https://rpc.qubic.org/v1/latestTick

@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 4, 2024

@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 10, 2024

Public/CurrentTick -> /v1/latestTick https://rpc.qubic.org/v1/latestTick

@sallymoc sallymoc changed the title To update the code to use the archive API To migrate the qli API services available in the archive API Sep 10, 2024
@sallymoc sallymoc self-assigned this Sep 10, 2024
@sallymoc sallymoc modified the milestones: 1.2.0, 1.3.0 Sep 11, 2024
@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 15, 2024

As reference, all the changes made in web wallet for the migration to the qubic APIs services are here https://github.com/qubic/wallet/tree/release/4.11

@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 17, 2024

@ahmed-tarek-salem https://rpc.qubic.org/v1/tick-info has the current tick of network

This is the response I've got couple of mins ago:
{
"tickInfo": {
"tick": 15945428,
"duration": 0,
"epoch": 126,
"initialTick": 15840000
}
}

  1. tick: is the current tick
  2. duration: it's the duration between 2 ticks, sometime it happens under a second, some code that doesn't support floating point will display 0 sec
    maybe empty tick, which is also displaying 0 sec, because we have no data about the tick
  3. initialTick: is the first tick in the epoch

This would be the replacement for https://api.qubic.li/Public/CurrentTick

@sallymoc
Copy link
Contributor Author

/balances/{id} -> should be used instead of Wallet/NetworkBalances.
I see it supports only 1 id per time
i.e https://rpc.qubic.org/v1/balances/PEQLWTWUIAUAECGFGUZDQXVSBPPCNSZBXHRBZLNHHENWHSZCWTBRAQQDXGNH

You can check here other services https://qubic.github.io/integration/Partners/qubic-rpc-doc.html

and I think all from this list need /v1/ in the path so it works

@sallymoc
Copy link
Contributor Author

sallymoc commented Sep 18, 2024

@sallymoc sallymoc added the Epic label Sep 26, 2024
@sallymoc sallymoc changed the title To migrate the qli API services available in the archive API To migrate the qli API services available in the qubic.org API Sep 27, 2024
@sallymoc sallymoc changed the title To migrate the qli API services available in the qubic.org API To migrate the qli API services available in the qubic.org API - part 1 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In review
Development

No branches or pull requests

2 participants