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

[Quais] - Create method for historical Qi:Quai Method from Core #23

Closed
mibuono opened this issue Feb 8, 2024 · 1 comment · Fixed by #48
Closed

[Quais] - Create method for historical Qi:Quai Method from Core #23

mibuono opened this issue Feb 8, 2024 · 1 comment · Fixed by #48

Comments

@mibuono
Copy link

mibuono commented Feb 8, 2024

There will be a historical data method for Qi and Quai in Core that Quais needs to serve requesters.

The method, data types, and payload should be reviewed from this issue: dominant-strategies/go-quai#1403

@rileystephens28
Copy link
Member

rileystephens28 commented Mar 6, 2024

This will require adding getQuaiQiConversionRate to the methods switch case in JsonRpcApiProvider.getRpcRequest().

AbstractProvider.getQuaiQiConversionRate(blockNumber: number): Promise<bigint>

This new abstract provider method returns the qi:quai conversion rate at a specified block height (number). This will execute the #perform function with method param getQuaiQiConversionRate

@robertlincecum robertlincecum linked a pull request Mar 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants