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

Marketplace Checkout - Integrate Swap APIs #193

Open
andygruening opened this issue Oct 15, 2024 · 2 comments
Open

Marketplace Checkout - Integrate Swap APIs #193

andygruening opened this issue Oct 15, 2024 · 2 comments
Assignees

Comments

@andygruening
Copy link
Contributor

The following APIs are used to get the swap quotes:
https://api.sequence.app/rpc/API/GetSwapPrices
https://api.sequence.app/rpc/API/GetSwapQuote

@BellringerQuinn
Copy link
Collaborator

@andygruening would you mind adding the related API docs or ridl files here?

@BellringerQuinn
Copy link
Collaborator

BellringerQuinn commented Nov 14, 2024

Ridl file: https://github.com/0xsequence/stack/blob/master/api/proto/api.ridl#L867

Unity Implementation: https://github.com/0xsequence/sequence-unity/pull/205/files
Main Unity implementation file: https://github.com/0xsequence/sequence-unity/pull/205/files#diff-a2baae059a39226b69a0243a7fada7b153ceb93f918e1871b8b26d242a0374b2

Important: we (Sequence) can be punished by our service provider for having too many unfulfilled GetSwapQuote requests. Please make sure to check that the user has sufficient funds to fulfill a SwapQuote prior to making the request by first GetSwapPrice and querying the Indexer - see AssertWeHaveSufficientBalance

@BellringerQuinn BellringerQuinn changed the title Integrate Swap APIs Marketplace Checkout - Integrate Swap APIs Nov 26, 2024
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

No branches or pull requests

3 participants