Constructors

Properties

account?: string

ID of the Account this TransactionIntent is executed with, if one exists (starts with acc_ or dac_). When providing a Player and ChainID, you can omit this parameter.

address: string

The address of the session key.

chainId: number

The chain ID. Must be a supported chain.

externalOwnerAddress?: string

If no account exists for a given player, create one with this address.

limit?: number

Maximum number of times the session key can be used.

optimistic?: boolean

Set to true to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain.

player?: string

The player ID (starts with pla_).

policy?: string

ID of the Policy that defines the gas sponsorship strategy (starts with pol_). If no Policy is provided, the own Account native token funds will be used to pay for gas.

validAfter: number

The unix timestamp in seconds when the session key becomes valid.

validUntil: number

The unix timestamp in seconds when the session key expires.

whitelist?: string[]

The list of whitelisted addresses (contracts the session key can interact with).

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;
    }[]