Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the node type in tutorials/0002-basics/01 #762

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tutorials/0002-basics/01.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "Create a node and return a Content Identifier (CID)"
title: "Create a DAG node and return a Content Identifier (CID)"
type: "code"
---

In this tutorial we'll be exploring the [IPFS DAG API](https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/DAG.md), which lets us store data
objects in IPFS. (You can store more exciting things in IPFS, like your favorite
cat GIF, but you'd need to use a different API for that.)

You can create a new node by passing a data object into the [`ipfs.dag.put`](https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/DAG.md#ipfsdagputdagnode-options) method,
You can create a new DAG node by passing a data object into the [`ipfs.dag.put`](https://github.com/ipfs/js-ipfs/blob/master/docs/core-api/DAG.md#ipfsdagputdagnode-options) method,
which returns a Content Identifier (CID) for the newly created node.

```javascript
Expand Down