Put Content

The .push_content() function:

  • serializes or saves the content object of the message to either ipfs or storage server

  • adds the item_hash from the content to the message object.

All parameters are required.

Inline_requested can be either true or false. If true, the content will be serialized otherwise the content is saved to:

  • ipfs if "ipfs" is passed as storage_engine

  • storage otherwise.

await put_content(
  message,
  content,
  inline_requested,
  storage_engine,
  api_server
)

Last updated