async AccessInfo({objectId, args}) {
    if(!args) {
      args = [
        0, // Access level
        [], // Custom values
        [] // Stakeholders
      ];
    }

    const info = await this.ethClient.CallContractMethod({
      contractAddress: Utils.HashToAddress(objectId),
      abi: ContentContract.abi,
      methodName: "getAccessInfo",
      methodArgs: args,
      signer: this.signer
    });

    return {
      visibilityCode: info[0],
      visible: info[0] >= 1,
      accessible: info[0] >= 10,
      editable: info[0] >= 100,
      hasAccess: info[1] === 0,
      accessCode: info[1],
      accessCharge: Utils.WeiToEther(info[2]).toString()
    };
  }
/**
   * Retrieve info about the access charge and permissions for the specified object.
   *
   * Note: Access charge is specified in ether
   *
   * @methodGroup Access Requests
   * @namedParams
   * @param {string} objectId - ID of the object
   * @param {object=} args - Arguments to the getAccessInfo method - See the base content contract
   *
   * @return {Promise<Object>} - Info about the access charge and whether or not the object is accessible to the current user   */
Retrieve info about the access charge and permissions for the specified object.
Note: Access charge is specified in ether

@methodGroup Access Requests
@namedParams
@param {string} objectId - ID of the object
@param {object=} args - Arguments to the getAccessInfo method - See the base content contract

@return {Promise} - Info about the access charge and whether or not the object is accessible to the current user
Retrieve info about the access charge and permissions for the specified object . Note : Access charge is specified in ether @methodGroup Access Requests @namedParams @param { string } objectId - ID of the object @param { object = } args - Arguments to the getAccessInfo method - See the base content contract @return { Promise } - Info about the access charge and whether or not the object is accessible to the current user
async AccessInfo({objectId, args}) {
    if(!args) {
      args = [
        0, 
        [], 
        [] 
      ];
    }
    const info = await this.ethClient.CallContractMethod({
      contractAddress: Utils.HashToAddress(objectId),
      abi: ContentContract.abi,
      methodName: "getAccessInfo",
      methodArgs: args,
      signer: this.signer
    });
    return {
      visibilityCode: info[0],
      visible: info[0] >= 1,
      accessible: info[0] >= 10,
      editable: info[0] >= 100,
      hasAccess: info[1] === 0,
      accessCode: info[1],
      accessCharge: Utils.WeiToEther(info[2]).toString()
    };
  }
async AccessInfo ( { objectId , args } ) { if ( ! args ) { args = [ 0 , [ ] , [ ] ] ; } const info = await this . ethClient . CallContractMethod ( { contractAddress : Utils . HashToAddress ( objectId ) , abi : ContentContract . abi , methodName : "getAccessInfo" , methodArgs : args , signer : this . signer } ) ; return { visibilityCode : info [ 0 ] , visible : info [ 0 ] >= 1 , accessible : info [ 0 ] >= 10 , editable : info [ 0 ] >= 100 , hasAccess : info [ 1 ] === 0 , accessCode : info [ 1 ] , accessCharge : Utils . WeiToEther ( info [ 2 ] ) . toString ( ) } ; }
Retrieve info about the access charge and permissions for the specified object.
Retrieve info about the access charge and permissions for the specified object .
// Access level // Custom values // Stakeholders