Constructors

Properties

accountType?: string

The type of smart account that will be created (e.g. ERC6551V1, UpgradeableV6, UpgradeableV5, ZKSyncUpgradeableV2). Defaults to UpgradeableV6.

chainId: number

The chain ID. Must be a supported chain.

defaultGuardian?: boolean

For account types that support social recovery, wether to enable Openfort as guardian or not. Defaults to false.

externalOwnerAddress?: string

Use this parameter to create a new Account for Player with the provided owner address.

player?: string

ID of the player this account belongs to (starts with pla_). If none is provided, a new player will be created.

tokenContract?: string

If ERC6551, the address of the NFT contract to use

tokenId?: number

If ERC6551, the tokenId from the NFT contract that will serve as owner

attributeTypeMap: {
    baseName: string;
    format: string;
    name: string;
    type: string;
}[] = ...

Type declaration

  • baseName: string
  • format: string
  • name: string
  • type: string
discriminator: undefined | string = undefined

Methods

  • Returns {
        baseName: string;
        format: string;
        name: string;
        type: string;
    }[]