You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we don't have support for websockets, our wallet apps (web and mobile) need to fetch periodically (currently every minute in the case of the mobile app) the balance for the accounts/addresses in the wallet.
both post services, receiving in the body the array of public IDs from where we want to fetch the data.
Considering N the number of accounts/addressed the user has in his/her wallet, we see in the available APIs, the services available have the following restrictions:
/balances/{id} supports a single address, this means, we would have to call this N times
for assets, the owned and possessed assets information is returned with two separated services
[/assets/{identity}/possessed] and [/assets/{identity}/owned] and both support a single address. This means, we well have to make Nx2 requests for this
We would like to have the response returned by the services mentioned above, consolidated in one single service that supports multiple addresses as input.
Also, it would be possible to also have a service that returns only the lastUpdate timestamp for a group of addresses, so we can fetch every time only the data for the accounts whose balance has changed since the last time it was fetched.
The text was updated successfully, but these errors were encountered:
sallymoc
changed the title
New service to get the balance of qubics and assets for multiple addresses
Request to develop a new service to get the balance of qubics and assets for multiple addresses
Sep 20, 2024
As we don't have support for websockets, our wallet apps (web and mobile) need to fetch periodically (currently every minute in the case of the mobile app) the balance for the accounts/addresses in the wallet.
In qubic.li api there we had for this purpose:
https://api.qubic.li/Wallet/NetworkBalances: returns qubic balances
https://api.qubic.li/Wallet/Assets: returns own and possessed assets
both post services, receiving in the body the array of public IDs from where we want to fetch the data.
Considering N the number of accounts/addressed the user has in his/her wallet, we see in the available APIs, the services available have the following restrictions:
We would like to have the response returned by the services mentioned above, consolidated in one single service that supports multiple addresses as input.
Also, it would be possible to also have a service that returns only the lastUpdate timestamp for a group of addresses, so we can fetch every time only the data for the accounts whose balance has changed since the last time it was fetched.
The text was updated successfully, but these errors were encountered: