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

    Interface SealedRequestBehavior

    Interface that defines the behavior of a sealed request.

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

    interface SealedRequestBehavior {
        withState(state: EnvelopeEncodableValue): SealedRequest;
        withOptionalState(state: EnvelopeEncodableValue): SealedRequest;
        withPeerContinuation(peerContinuation: Envelope$1): SealedRequest;
        withOptionalPeerContinuation(
            peerContinuation: Envelope$1 | undefined,
        ): SealedRequest;
        request(): Request;
        sender(): XIDDocument;
        state(): Envelope$1 | undefined;
        peerContinuation(): Envelope$1 | undefined;
    }

    Implemented by

    Index

    Methods

    • Adds an optional continuation previously received from the recipient.

      Parameters

      • peerContinuation: Envelope$1 | undefined

      Returns SealedRequest

    • Returns the sender of the request.

      Returns XIDDocument

    • Returns the state to be sent to the recipient.

      Returns Envelope$1 | undefined

    • Returns the continuation received from the recipient.

      Returns Envelope$1 | undefined