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

Add conversion rate RPC endpoint #27

Merged

Conversation

jrchatruc
Copy link
Member

No description provided.

Copy link

@fkrause98 fkrause98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, tested this with:

curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"zks_getConversionRate","params":[],"id":1}' http://localhost:3050

Which responds:

{"jsonrpc":"2.0","result":"0xb","id":1}

I was expecting a decimal number, so let's keep in mind this answers in hex.

@fkrause98 fkrause98 merged commit 87ac1d0 into erc20-to-eth-conversion-value Jan 10, 2024
4 of 9 checks passed
@fkrause98 fkrause98 deleted the add-conversion-rate-rpc-endpoint branch January 10, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants