Consume Flow

This page shows how you can get datatokens & download an asset

Consume flow highlights the methods for getting a datatoken for accessing an asset from Ocean Market and for downloading the content of the asset.

We assumed that you accomplished the publish flow presented previously.

Now let's see how can Bob get access to Alice's asset in order to download/consume it.

Get access for a dataset πŸ”‘

Below, we show four possible approaches:

  • A & B are when Alice is in contact with Bob. She can mint directly to him, or mint to herself and transfer to him.

  • C is when Alice wants to share access for free, to anyone

  • D is when Alice wants to sell access

In the same Python console:

For more info, check Technical Details about ocean.py most used functions and also the smart contracts for Dispenser & Fixed Rate Exchange.

Consume the asset ⬇️

To "consume" an asset typically means placing an "order", where you pass in 1.0 datatokens and get back a url. Then, you typically download the asset from the url.

Bob now has the datatoken for the dataset! Time to download the dataset and use it.

In the same Python console:

Let's check that the file is downloaded. In a new console:

The beginning of the file should contain the following contents:

Last updated

Was this helpful?