Skip to main content

RoleCreated

@iota/audit-trails API documentation


Class: RoleCreated

Event payload emitted when a role is created.

Properties​

createdBy​

createdBy: string

Address that created the role.


permissions​

permissions: PermissionSet

Permissions granted by the new role.


role​

role: string

Role name.


timestamp​

timestamp: bigint

Millisecond event timestamp.


trailId​

trailId: string

Trail object ID that owns the role.

Accessors​

roleTags​

Get Signature​

get roleTags(): RoleTags | undefined

Optional record-tag restrictions stored as role data.

Returns​

RoleTags | undefined

Set Signature​

set roleTags(value): void

Optional record-tag restrictions stored as role data.

Parameters​
value​

RoleTags | null | undefined

Returns​

void

Methods​

toJSON()​

toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object


toString()​

toString(): string

Return stringified version of self.

Returns​

string