Skip to main content

ElvAccount

Constructor

new ElvAccount({
  configUrl,
  mainObjectId
}) → ElvSpace

Instantiate the ElvAccount Object

Returns: New ElvAccount object connected to the specified content fabric and blockchain

Parameters

NameTypeRequiredDescription
configUrlstring

The Content Fabric configuration URL

mainObjectIdstring

The top-level Eluvio Live object ID

Create

Create({
  funds,
  accountName,
  tenantId,
  groupToRoles,
  skipAddingToTenantUserGroup
}) → Promise.<Object>

Creates a new account including wallet object and contract. Current client must be initialized and funded.

Returns: An object containing the new account mnemonic, privateKey, address, accountName, balance

Parameters

NameTypeRequiredDescription
fundsnumber

The amount in ETH to fund the new account.

accountNamestring

The name of the account to set in it's wallet metadata (Optional)

tenantIdstring

The tenant ID (iten) (Optional)

groupToRolesobject

Map of group to roles [member|manager] (Optional)

skipAddingToTenantUserGroupboolean

skip adding to tenant user group (Optional)

SetGroupTenantConfig

SetGroupTenantConfig(
  tenantId,
  groupAddress
)

Associate group with the tenant with tenant contract Id.

Parameters

NameTypeRequiredDescription
tenantIdstring

The ID of the tenant (iten***)

groupAddressstring

Address of the group we want to remove.

Show

Show()

Show info about this account.