Constructors

  • Parameters

    • request: {
          id: string;
          name?: string;
          origin: string;
          payload:
              | { type: "connect" }
              | { address: string; data: string; type: "sign-transaction-block" }
              | { address: string; bytes: string; type: "sign-personal-message" };
      }

    Returns StashedHost

Methods

  • Parameters

    • Optionalpayload:
          | { type: "reject" }
          | {
              data:
                  | { address: string; type: "connect" }
                  | { bytes: string; signature: string; type: "sign-transaction-block" }
                  | { bytes: string; signature: string; type: "sign-personal-message" };
              type: "resolve";
          }

    Returns void

  • Returns {
        id: string;
        name?: string;
        origin: string;
        payload:
            | { type: "connect" }
            | { address: string; data: string; type: "sign-transaction-block" }
            | { address: string; bytes: string; type: "sign-personal-message" };
    }

  • Parameters

    • payload:
          | { type: "reject" }
          | {
              data:
                  | { address: string; type: "connect" }
                  | { bytes: string; signature: string; type: "sign-transaction-block" }
                  | { bytes: string; signature: string; type: "sign-personal-message" };
              type: "resolve";
          }

    Returns void

  • Parameters

    • url: string = window.location.href

    Returns StashedHost