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

Fetching data on front-end #327

Closed
qualwebs opened this issue Jan 20, 2024 · 3 comments
Closed

Fetching data on front-end #327

qualwebs opened this issue Jan 20, 2024 · 3 comments

Comments

@qualwebs
Copy link

I want to integrate the front-end with the blockchain and also fetch the data stored using account_storage_map. Can anyone assist?
I couldn't find the exact documentation to do so.

@abitmore
Copy link
Member

abitmore commented Jan 20, 2024

As I replied in https://github.com/orgs/bitshares/discussions/2804#discussioncomment-8186105, there is one API that you can use, which is custom_operations_api::get_storage_info, and it is described in bitshares/bitshares-core#2620 and bitshares/bitshares-core#1926.

Other documentation(s):

For examples (how to use the API), you can take a look at https://t.me/BitSharesDEV/4490 (with Telegram) and the following messages.

How you would use or show the data on front end is totally up to you.

@qualwebs
Copy link
Author

qualwebs commented Jan 23, 2024

Thanks, will explore these options if it fits my needs but hey, what I am not able to wrap my head around, is how do I link the api with the front end ?
Like If I build the front end with react then there aren't any node packages that I can import, there's no mention of this in the documentation either. However, I found this : https://www.npmjs.com/package/bitsharesjs-ws will look into this if this helps me fetch data to front end. Will do some research and ask again if required.

@abitmore
Copy link
Member

abitmore commented Jan 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants