1

I want to use the 0x quote api endpoint (https://docs.0x.org/0x-api-swap/api-references/get-swap-v1-quote). When requesting a swap, i do not know the takerAddress since at request time i do not know from which account i am executing the swap. Is it possible to consume the quote response without takerAddress and how would i implement this?

1 Answer 1

2

You can fill a quote even if the taker address is not specified on the quote. Filling the taker address and passing it on the API call will trigger additional validation and a more accurate gas estimation. However if you know how much gas the swap will cost and if the taker is eligible to fill the quote, the swap will succeed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.