Skip to main content
Version: Next

Type Alias: AccountOptions

AccountOptions = object & PluginConfig

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

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)

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'