Skip to main content
Version: 11.x

Type Alias: AccountOptions

AccountOptions = object & PluginConfig

Defined in: src/account/types/index.type.ts:27

Configuration options for creating an Account instance

Type Declaration​

provider​

provider: ProviderOptions | ProviderInterface

Provider instance or configuration for blockchain interaction

address​

address: string

Account address on the Starknet network

signer​

signer: Uint8Array | string | SignerInterface

Private key or Signer Class instance for signing transactions

cairoVersion?​

optional cairoVersion?: CairoVersion

Cairo version to use for this account (optional, auto-detected if not provided)

transactionVersion?​

optional transactionVersion?: SupportedTransactionVersion

Transaction version to use for sending transactions (optional)

paymaster?​

optional paymaster?: PaymasterOptions | PaymasterInterface

Paymaster configuration for sponsored transactions (optional). It always installs the paymaster plugin, even with plugins: false.

deployer?​

optional deployer?: DeployerInterface

Use of a custom account deployer contract (optional)

defaultTipType?​

optional defaultTipType?: TipType

Default tip type to use for sending transactions (optional)

Default​

'recommendedTip'