.. and press ENTER to ask a question on web5, how to write code and more.

Skip to main content

Write DWN Records

Various data types, such as text, JSON, images, streams or files, can be stored as records in a DWN. Below are examples of each.

Create a text record​

Create a JSON record​

Create a blob or image record​

Create a file record​

Create records with mixed data​

You can also store mixed data via JSON - including text, images, or files.

Create records from an existing record​

You can create a new version of a record while maintaining a link to the version of the original record.

Create records with tags​

You can assign tags to records to enable filtering by specific keywords.

For more information on writing records to DWNs, see our API Guide.

Connect with us on Discord

Submit feedback: Open a GitHub issue

Edit this page: GitHub Repo

Contribute: Contributing Guide