ElvAccount
Constructor
Instantiate the ElvAccount Object
Returns: New ElvAccount object connected to the specified content fabric and blockchain
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
configUrl | string | ✓ | The Content Fabric configuration URL |
mainObjectId | string | ✓ | The top-level Eluvio Live object ID |
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 | Required | 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) |
SetGroupTenantConfig
tenantId,
groupAddress
)
Associate group with the tenant with tenant contract Id.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
tenantId | string | ✓ | The ID of the tenant (iten***) |
groupAddress | string | ✓ | Address of the group we want to remove. |
Show
Show info about this account.