I'm trying to fill order from my contract by using 0x V4 API and contract on Mainnet.
So far I'm guessing that I should call batchFill function in this contract.
https://etherscan.io/address//0xdef1c0ded9bec7f1a1670819833240f027b25eff#writeProxyContract
But I have no idea what data I need to pass to "fillData (tuple)". Could anyone help me? Also, I found that "exchangeProxy" contract is deployed to Polygon network but it seems that the interface is different. How can I fill order on the Polygon network?
https://polygonscan.com/address/0xdef1c0ded9bec7f1a1670819833240f027b25eff#writeProxyContract
I'm using API call like this to get orderbooks information.
I found v4 contract address here
https://protocol.0x.org/en/latest/basics/addresses.html#exchange-v4 https://github.com/0xProject/protocol/blob/development/packages/contract-addresses/addresses.json
Thanks,