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

How can i get transactionRequest that given route from over API #187

Open
yulafezmesi opened this issue May 9, 2024 · 1 comment
Open

Comments

@yulafezmesi
Copy link

hey, i believe v1/quote returns best route and returns transactionRequest inside of it. however, how can get transactionRequest that given route?

for instance, i fetched all routes over this /advanced/routes and want to get transactionRequest for second route. how can i achieve that?

thanks.

@chybisov
Copy link
Member

@yulafezmesi Hey, each route contains a steps array, and you can get transactionRequest for each step using the getStepTransaction method.

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

2 participants