I am building a middleware contract to interact with 0x. but I can't find which function to use in the 0x contract. could anyone help me? can anyone explain how 0x swap tokens on contract level?

1 Answer 1


If you are building your own middleware, consider looking at the 0x protocol docs, specifically the architecture overview section could be helpful to understand how all the smart contracts in the protocol interact.

Also, https://github.com/0xProject/protocol contains the 0x protocol smart contracts.

However, if you'd like to use our existing API, here's some useful docs:

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.