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

API update: update block query method #34

Open
barbaraliau opened this issue Jul 17, 2020 · 0 comments
Open

API update: update block query method #34

barbaraliau opened this issue Jul 17, 2020 · 0 comments
Assignees

Comments

@barbaraliau
Copy link
Contributor

Current block query method uses the now deprecated version. Update to new version:
https://docs.near.org/docs/interaction/rpc#transaction-status

block({ block_id: BlockId })

block({ finality: "final" | "near-final" | "optimistic"})

Warn message:

JsonRpcProvider.block(blockId) deprecated use `block({ blockId })` or `block({ finality })`
@barbaraliau barbaraliau self-assigned this Jul 17, 2020
@barbaraliau barbaraliau added this to the Maintenance Mode milestone Jul 28, 2020
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

Successfully merging a pull request may close this issue.

1 participant