Skip to main content

CleanupRevokedCapabilities

@iota/audit-trails API documentation


Class: CleanupRevokedCapabilities

Transaction wrapper for cleaning up expired revoked-capability entries.

Remarks​

Only prunes denylist entries whose stored validUntil is non-zero and strictly less than the current clock time. Entries with validUntil == 0 are kept indefinitely. Does not revoke additional capabilities.

Requires the Permission.RevokeCapabilities permission.

Emits a RevokedCapabilitiesCleanedUp event on success.

Methods​

toJSON()​

toJSON(): Object

  • Return copy of self without private attributes.

Returns​

Object


toString()​

toString(): string

Return stringified version of self.

Returns​

string


applyWithEvents()​

applyWithEvents(wasm_effects, wasm_events, client): Promise<RevokedCapabilitiesCleanedUp>

Applies transaction effects and events and decodes the matching event payload.

Parameters​

wasm_effects​

TransactionEffects

wasm_events​

IotaEvent[]

client​

CoreClientReadOnly

Read-only core client used during application.

Returns​

Promise<RevokedCapabilitiesCleanedUp>

Decoded RevokedCapabilitiesCleanedUp event payload.

Throws​

When the expected event is missing or transaction application fails.


buildProgrammableTransaction()​

buildProgrammableTransaction(client): Promise<Uint8Array<ArrayBufferLike>>

Builds the programmable transaction bytes for submission.

Parameters​

client​

CoreClientReadOnly

Read-only core client used to resolve packages and serialize the transaction.

Returns​

Promise<Uint8Array<ArrayBufferLike>>

BCS-encoded programmable transaction bytes ready for signing and submission.

Throws​

When transaction serialization fails.