Skip to content
Alchemy Logo

SignSignatureRequestParams

type SignSignatureRequestParams = WithoutRawPayload<
  | {
      type: "personal_sign";
      data:
        | string
        | {
            raw: `0x${string}`;
          };
      rawPayload: `0x${string}`;
    }
  | {
      type: "eth_signTypedData_v4";
      data: {
        types: Record<
          string,
          {
            name: string;
            type: string;
          }[]
        >;
        primaryType: string;
        message: Record<string, unknown>;
        domain?:
          | {
              chainId?: number | bigint | undefined;
              name?: string | undefined;
              salt?: `0x${string}` | undefined;
              verifyingContract?: `0x${string}` | undefined;
              version?: string | undefined;
            }
          | undefined;
      };
      rawPayload: `0x${string}`;
    }
  | ({
      type: "eip7702Auth";
      rawPayload: `0x${string}`;
    } & {
      data: {
        chainId: number;
        address: `0x${string}`;
        nonce: number;
      };
    })
>;

Defined in: packages/wallet-apis/src/actions/signSignatureRequest.ts:22

Was this page helpful?