Share file

Syntax

eueno.shareTo(opts)

Example

const Eueno = require('@eueno/lib-node');

async function example() {
  const eueno = new Eueno({
    endpoint: 'https://v2-developers.eueno.io',
  });

   const data = await eueno.shareTo(
    {
      fileId: "file id want to share",
      projectKey: "project key,
      projectId: "project id",
      walletPrivateKey: "wallet private key of owner data",
      walletPublicKeyShare: "wallet public key of shared person,
    },
  );
}


example();

Parameters

NameTypeRequiredDescription

opts

Object

Yes

Initialization parameter

Properties

opts

NameTypeRequiredDescription

fileId

Integer

Yes

File id want to share

projectKey

String

Yes

project key to authenticate client and eueno server

projectId

Integer

Yes

Id project eueno

walletPrivateKey

String

Yes

wallet private key of owner data

walletPublicKeyShare

String

Yes

wallet public key of shared person

Last updated