I'm currently working on a new decentralised derivatives exchange and I'm considering using 0x protocol to perform swaps. In order to create market orders on chain I'm following this example here.
The example works for me however I would like to be able to access the
swapCallData parameters from my smart contract as I'd like to do some validations before using it.
Is there a way to extract each field from
swapCallData in js or solidity ? Is there a reference somewhere on the structure and content of this data, and is it guaranteed to always follow the same structure ?