Skip to main content

CreateNotarizationDynamic

@iota/notarization API documentation


Class: CreateNotarizationDynamic

Transaction that creates a Dynamic-Notarization.

Remarks

A Dynamic-Notarization can be updated after creation. On success the new notarization object is transferred to the transaction sender.

Emits a DynamicNotarizationCreated event on success.

Constructors

Constructor

new CreateNotarizationDynamic(builder): CreateNotarizationDynamic

Constructs the transaction from a configured Dynamic-Notarization builder.

Parameters

builder

NotarizationBuilderDynamic

A finalized NotarizationBuilderDynamic.

Returns

CreateNotarizationDynamic

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<OnChainNotarization>

Reads the on-chain effects and events of the submitted transaction and returns the resulting OnChainNotarization.

Parameters

wasm_effects

TransactionEffects

wasm_events

IotaEvent[]

client

CoreClientReadOnly

A read-only client connected to the target network.

Returns

Promise<OnChainNotarization>

The created OnChainNotarization.

Remarks

Invoked automatically by the TransactionBuilder machinery after the transaction has been submitted; calling it directly is normally not necessary.

Throws

When the effects/events are inconsistent with this transaction or the result cannot be reconstructed.


buildProgrammableTransaction()

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

Builds the programmable transaction bytes.

Parameters

client

CoreClientReadOnly

A read-only client connected to the target network.

Returns

Promise<Uint8Array<ArrayBufferLike>>

The BCS-serialized programmable transaction, ready to be signed and submitted.

Throws

When the transaction cannot be built — e.g. when the configured state, metadata, or lock combination is rejected.