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

Document snap_getCurrencyRate #1665

Open
Montoya opened this issue Oct 23, 2024 · 2 comments
Open

Document snap_getCurrencyRate #1665

Montoya opened this issue Oct 23, 2024 · 2 comments
Assignees
Labels
snaps Related to Snaps content. tech-writing Requires updates to documentation content.

Comments

@Montoya
Copy link
Collaborator

Montoya commented Oct 23, 2024

This is a new method that is not documented. The method is here:

https://github.com/MetaMask/snaps/blob/ec811b7d140fd6a4ce3e7e68970bef7c55e89162/packages/snaps-sdk/src/types/methods/get-currency-rate.ts#L23

It allows a Snap to get the internal currency conversion from MetaMask

@ajeetd
Copy link

ajeetd commented Oct 25, 2024

Get the exchange value for the requested crypto against the users preferried fiat currency in the extension. Currently only BTC.

@ziad-saab
Copy link
Contributor

@Montoya or @ajeetd : I tried the latest published version of the snaps-sdk and it doesn't yet have that method in its types. i think i should be able to get around that for testing, if I can find an appropriate version of Flask to test on. can you please provide one?

@alexandratran alexandratran added tech-writing Requires updates to documentation content. snaps Related to Snaps content. labels Oct 29, 2024
@Montoya Montoya assigned Montoya and unassigned ziad-saab Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snaps Related to Snaps content. tech-writing Requires updates to documentation content.
Projects
None yet
Development

No branches or pull requests

5 participants
@Montoya @ziad-saab @alexandratran @ajeetd and others