Create a meta-data document
Orders in CoW Protocol can contain arbitrary data in a field called AppData
.
The SDK facilitates the creation of these documents, and getting the AppData
Hex number that summarizes it.
The most important thing to define in the meta-data is the name of your app, so the order-flow can be credited to it.
This will create a document similar to:
After creating the most basic document, you can see how to attach additional meta-data items.
For example, you could give information about who reffered the user creating the order.
This will create a document similar to:
For a complete list of meta-data that can be attach check @cowprotocol/app-data
Know that you know how to create meta-data documents, let's review how to get the appData
that we need when we post orders. Just a hint, this appData
is deterministic based on the content of the meta-data document.
Last updated