Skip to content
Alchemy Logo

RequestAccountParams

type RequestAccountParams =
  | {
      id?: string | undefined;
      creationHint?:
        | ({
            createAdditional?: true | undefined;
            salt?: bigint | `0x${string}` | undefined;
          } & (
            | {
                accountType?:
                  | "sma-b"
                  | "la-v2"
                  | "la-v1.0.1"
                  | "la-v1.0.2"
                  | "la-v1.1.0"
                  | undefined;
              }
            | {
                accountType: "la-v2-multi-owner" | "ma-v1-multi-owner";
                initialOwners?: `0x${string}`[] | undefined;
              }
          ))
        | {
            accountType: "7702";
          }
        | undefined;
      signerAddress?: `0x${string}` | undefined;
      accountAddress?: undefined;
    }
  | {
      id?: string | undefined;
      creationHint?:
        | ({
            createAdditional?: true | undefined;
            salt?: bigint | `0x${string}` | undefined;
          } & (
            | {
                accountType?:
                  | "sma-b"
                  | "la-v2"
                  | "la-v1.0.1"
                  | "la-v1.0.2"
                  | "la-v1.1.0"
                  | undefined;
              }
            | {
                accountType: "la-v2-multi-owner" | "ma-v1-multi-owner";
                initialOwners?: `0x${string}`[] | undefined;
              }
          ))
        | {
            accountType: "7702";
          }
        | undefined;
      signerAddress?: undefined;
      accountAddress: `0x${string}`;
    };

Defined in: packages/wallet-apis/src/actions/requestAccount.ts:23

Was this page helpful?