How to Integrate Offers and Wants from your Network with the Murmurations Protocol
Intro:
Offers and wants from your network can be shared over the Murmurations protocol by making the data available in appropriately formatted .json files and registering the URLs of these files with the Murmurations index. Aggregators can then query the index, find links to the offers and wants data and present the data to their networks.
Here’s an example of a basic offer, in Murmurations compatible .json for a tasty chocolate cake, which validates against the Murmurations Offers and Wants schema prototype.
You can use the test version of the Murmurations Profile Generator to create test offers and wants profiles, to see how the schema converts data inputs into code.
To make offers and wants from your network available to Murmurations you need:
- To provide an endpoint address, or create a .json file for each node that you would like to share with the network
- Code that sends a POST request to the Murmurations index to let it know when one of your nodes is updated
To test your code is creating Murmurations compatible .json file you can use the JSON Schema validator, as follows:
- Copy the full schema code from the Murmurations Offers and Wants schema and paste it (in place of the existing code) on the box on the left
- Paste your example profile code (in place of the existing code) into the "Input JSON" text area on the right.
- Keep tweaking until you get the green message that the profile validates against the schema, like below:

Once your Offers and Wants profiles are validating against the schema and you have published them on your webserver at a publicly accessible URL, you can register them with the Murmurations index via the API. See the Index API Docs for more details of how the index works.
