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

Can fetch and prepare swap #3

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Can fetch and prepare swap #3

merged 2 commits into from
Sep 28, 2023

Conversation

gidonkatten
Copy link
Member

Added FolksRouterClient. The client supports both mainnet and testnet. The client also supports API key usage. In particular:

  • Can call fetchSwapQuote and receive a quote and transaction payload needed to get swap transactions
  • Can call prepareSwapTransactions using a given quote and receive an array of unsigned transactions needed to execute swap

Also created an example usage for client

Copy link
Collaborator

@stefanofa stefanofa left a comment

Choose a reason for hiding this comment

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

LGTM! Later I will try to use it in our frontend

@gidonkatten gidonkatten merged commit 2341e25 into main Sep 28, 2023
@gidonkatten gidonkatten deleted the js-sdk branch September 28, 2023 15:01
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 this pull request may close these issues.

None yet

2 participants