ElvAccount

new ElvAccount({
configUrl,
mainObjectId
})
ElvSpace

Instantiate the ElvAccount Object

Returns: New ElvAccount object connected to the specified content fabric and blockchain
Parameters:
Name Type Description
configUrl string

The Content Fabric configuration URL

mainObjectId string

The top-level Eluvio Live object ID

Source:

Methods

async 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:
Name Type Description
funds number

The amount in ETH to fund the new account.

accountName string

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

tenantId string

The tenant ID (iten) (Optional)

groupToRoles object

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

skipAddingToTenantUserGroup boolean

skip adding to tenant user group (Optional)

Source:

async SetGroupTenantConfig(
tenantId,
groupAddress
)

Associate group with the tenant with tenant contract Id.

Parameters:
Name Type Description
tenantId string

The ID of the tenant (iten***)

groupAddress string

Address of the group we want to remove.

Source:

async Show()

Show info about this account.

Source: