Hubert - Distributed Infrastructure for Secure Multiparty Transactions - v1.0.0-alpha.20
    Preparing search index...

    Function addBytes

    • Add (upload) bytes to IPFS and return the CID.

      Port of add_bytes() from ipfs/value.rs lines 9-15.

      Parameters

      • client: KuboRPCClient

        Kubo RPC client

      • bytes: Uint8Array

        Data to add

      Returns Promise<string>

      CID of the added content