Documentation
    Preparing search index...

    Type Alias EmbeddedResponse

    EmbeddedResponse:
        | {
            ok: true;
            result: SendTransactionResponse
            | SignDataResponse
            | SignMessageResponse;
        }
        | { error: { code: number; data?: unknown; message: string }; ok: false }

    Result the wallet attached to the connect event when an embedded request was folded into the connect URL.

    Discriminated by ok:

    • ok: true — the wallet processed the request. result carries the regular method response (SendTransactionResponse, SignDataResponse or SignMessageResponse), whichever method was embedded.
    • ok: false — the wallet returned an error in place of a result. error matches the RPC error shape; the per-method error tables live in the RPC specification.