Skip to main content

CreateNotarizationDynamic

@iota/notarization API documentation


Class: CreateNotarizationDynamic

Represents a transaction for creating dynamic notarization's.

Dynamic notarization's can be updated after creation, with modification capabilities for both state and metadata.

Methods

toJSON()

toJSON(): Object

  • Return copy of self without private attributes.

Returns

Object


toString()

toString(): string

Return stringified version of self.

Returns

string


buildProgrammableTransaction()

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

Builds and returns a programmable transaction for creating a dynamic notarization.

Returns

The binary BCS serialization of the programmable transaction. This transaction can be submitted to the network to create a new dynamic notarization.

Errors

Returns an error if the transaction cannot be built due to invalid parameters or other constraints.

Parameters

client

CoreClientReadOnly

Returns

Promise<Uint8Array<ArrayBufferLike>>


applyWithEvents()

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

Applies transaction effects and events to this notarization creation operation.

This method is called automatically by Transaction::build_programmable_transaction() and Transaction::apply() methods after the transaction has been successfully submitted to process the results from the ledger.

Arguments

  • effects - The transaction block effects to apply.
  • events - The transaction block events to apply.

Returns

The created notarization ID if successful.

Parameters

wasm_effects

TransactionEffects

wasm_events

IotaEvent[]

client

CoreClientReadOnly

Returns

Promise<OnChainNotarization>