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

[refactor] Switch from using polkadot-js to avail-js-sdk #32

Open
abheektripathy opened this issue Feb 8, 2024 · 3 comments
Open

[refactor] Switch from using polkadot-js to avail-js-sdk #32

abheektripathy opened this issue Feb 8, 2024 · 3 comments
Assignees

Comments

@abheektripathy
Copy link
Member

instead of using the polkadot js for getting the block headers, we can use avail-js-sdk

// example code which fetches the latest headers

import { initialize } from "avail-js-sdk"
const api = await initialize()
let lastHeader = (await api.rpc.chain.getHeader()).toJSON();
    console.log((lastHeader.extension));
console.log("subscribed headers", lastHeader) 
@cpp-phoenix
Copy link

I can pick this right away @abheektripathy until design is ready for the other issue

@abheektripathy
Copy link
Member Author

@cpp-phoenix thanks, go for it!

@AryanGodara
Copy link

@abheektripathy are there going to be any new issues, with the ODHack week beginning today?
This past week I've been contributing in rollkit, and was getting onboarded with light-client-lib(rust) repo; and so I've been looking for a chance to contribute here.
I'd really be grateful if you could point me in the right direction :D

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

3 participants