Variable AccountCreatedEventStructConst

AccountCreatedEventStruct: Struct<{
    method: "notify:accountCreated";
    params: {
        account: {
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        };
        accountNameSuggestion?: string;
        displayConfirmation?: boolean;
    };
}, {
    method: Struct<"notify:accountCreated", "notify:accountCreated">;
    params: Struct<{
        account: {
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        };
        accountNameSuggestion?: string;
        displayConfirmation?: boolean;
    }, {
        account: Struct<{
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        }, {
            address: Struct<string, null>;
            id: Struct<string, null>;
            methods: Struct<string[], Struct<string, null>>;
            options: Struct<Record<string, Json>, null>;
            type: Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
                bip122:p2wpkh: "bip122:p2wpkh";
                eip155:eoa: "eip155:eoa";
                eip155:erc4337: "eip155:erc4337";
            }>;
        }>;
        accountNameSuggestion: Struct<string | ExactOptionalTag, null>;
        displayConfirmation: Struct<boolean | ExactOptionalTag, null>;
    }>;
}> = ...

Type declaration

  • method: "notify:accountCreated"
  • params: {
        account: {
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        };
        accountNameSuggestion?: string;
        displayConfirmation?: boolean;
    }
    • account: {
          address: string;
          id: string;
          methods: string[];
          options: Record<string, Json>;
          type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
      }

      New account object.

      • address: string

        Account main address.

      • id: string

        Account ID (UUIDv4).

      • methods: string[]

        Account supported methods.

      • options: Record<string, Json>

        Account options.

      • type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh"

        Account type.

    • Optional accountNameSuggestion?: string

      Account name suggestion provided to the MetaMask client.

      The keyring can suggest a name for the account, but it's up to the client to decide whether to use it. The keyring won't be informed if the client decides to use a different name.

    • Optional displayConfirmation?: boolean

      Instructs MetaMask to display the add account confirmation dialog in the UI. Note: This is not guaranteed to be honored by the MetaMask client.

Type declaration

  • method: Struct<"notify:accountCreated", "notify:accountCreated">
  • params: Struct<{
        account: {
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        };
        accountNameSuggestion?: string;
        displayConfirmation?: boolean;
    }, {
        account: Struct<{
            address: string;
            id: string;
            methods: string[];
            options: Record<string, Json>;
            type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh";
        }, {
            address: Struct<string, null>;
            id: Struct<string, null>;
            methods: Struct<string[], Struct<string, null>>;
            options: Struct<Record<string, Json>, null>;
            type: Struct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2wpkh", {
                bip122:p2wpkh: "bip122:p2wpkh";
                eip155:eoa: "eip155:eoa";
                eip155:erc4337: "eip155:erc4337";
            }>;
        }>;
        accountNameSuggestion: Struct<string | ExactOptionalTag, null>;
        displayConfirmation: Struct<boolean | ExactOptionalTag, null>;
    }>