Skip to content
Docs
Settlement

Settlement

The CalldataToExecute event is sent after a market maker has been matched with the taker based on whether a successful market order has been matched.

{
    "rfqId": "aori-7qn8l",
    "detailsToExecute": {
        "matchingHash": "0x123",
        "matching": {
            ...
        },
        ...
        "chainId": 42161,
        "to": "0x123",
        "value": 1000000000000000000,
        "data": "0x123",
    }
}

The winning market maker or solver will then execute the order on-chain using the to, value, and data fields. This can be a direct transaction or a call to the contract in an embedded call e.g multicall.

The TradeSettled event is sent after the trade has been settled on-chain.