Cherry
  • The Basics
    • Introduction
    • The Cherry Primer
    • Cherry Protocol
    • Cherry Token
      • Wrapped Cherry Token
  • Quickstart
    • Installing the Cherry Node
    • Create an Account
  • Cherry Stack
    • Parachain & Parathread
    • Consensus
      • Become a Validator
      • Become a Nominator
      • Unbonding and Rebonding
      • Validating FAQ
    • Governance
      • Treasury
    • Storage
      • What is IPFS
      • Application Programming Interface
    • EVM Compatibility (pEVM)
    • Identities
  • Build
    • Style Guide
  • Community
    • Ambassador Program
    • Public Grants
  • Cherry Ecosystem
    • Finance
    • Capital Partners
  • Substrate
    • Polkadot
    • Substrate
    • XCM
  • Resources
    • Glossary
    • Blockchain UI
    • Job Board
  • Official Website
Powered by GitBook
On this page
  • Cherry Node IPFS Features
  • Callable functions in Cherry
  1. Cherry Stack
  2. Storage

Application Programming Interface

Cherry Node IPFS Features

Ownerships

Share your files with other accounts through OwnershipLayers (Owner, Editor, Reader). You can give and/or revoke the OwnershipLayer of any account as long as your are the Owner of the IPFS asset.

  • Owners can read, edit, pin, unpin and delete an IPFS asset.

  • Editors can read and edit an IPFS asset.

  • Readers can only read an IPFS asset.

Files you upload are automatically pinned. Pinning an IPFS asset allows you to tell the IPFS to always keep the pinned asset in your local node. Also, by pinning an IPFS asset, you are able to share it with other peers.

Unpin any IPFS asset that you do not want to share anymore.

Callable functions in Cherry

  1. create_ipfs_asset : Create the file you want to upload.

  2. pin_ipfs_asset : Pin

  3. unpin_ipfs_asset: Unpins an IPFS Asset and make it available for garbage collection

  4. delete_ipfs_asset: Deletes the IPFS Asset from the storage

  5. add_owner: Add an Owner(Owner, Editor, Reader) to the given IPFS Asset

  6. remove_ownership: Removes any kind of ownership of the given Account from the given IPFS Asset

  7. change_ownership: Change the ownership of a given Account of then given IPFS Asset

PreviousWhat is IPFSNextEVM Compatibility (pEVM)

Last updated 2 years ago