Blockchain Commons GSTP TypeScript Library - v1.0.0-alpha.16
    Preparing search index...

    Interface SealedResponseBehavior

    Interface that defines the behavior of a sealed response.

    Extends ResponseBehavior with additional methods for managing sender information and state continuations.

    interface SealedResponseBehavior {
        withState(state: EnvelopeEncodableValue): SealedResponse;
        withOptionalState(state: EnvelopeEncodableValue): SealedResponse;
        withPeerContinuation(
            peerContinuation: Envelope$1 | undefined,
        ): SealedResponse;
        sender(): XIDDocument;
        state(): Envelope$1 | undefined;
        peerContinuation(): Envelope$1 | undefined;
    }

    Implemented by

    Index

    Methods

    • Returns the sender of the response.

      Returns XIDDocument

    • Returns the state to be sent to the peer.

      Returns Envelope$1 | undefined

    • Returns the continuation received from the peer.

      Returns Envelope$1 | undefined