Class: AccountInterface
Interface for interacting with Starknet account contracts
Extends ProviderInterface to provide account-specific functionality including:
- Transaction execution and signing
- Fee estimation for various transaction types
- Contract deployment through UDC (Universal Deployer Contract)
- Paymaster support for sponsored transactions
- EIP-712 message signing
Remarks
Implementations of this interface typically handle the complexities of:
- Nonce management
- Transaction signing with the account's private key
- Interaction with the account contract's execute entrypoint
Hierarchy
-
↳
AccountInterface
Implemented by
Constructors
constructor
• new AccountInterface(): AccountInterface
Returns
Inherited from
Properties
address
• Abstract address: string
The address of the account contract on Starknet
Defined in
signer
• Abstract signer: SignerInterface
Signer instance for signing transactions and messages
Defined in
cairoVersion
• Abstract cairoVersion: CairoVersion
Cairo version of the account contract implementation
Defined in
deployer
• Optional Abstract deployer: DeployerInterface
Optional deployer instance for custom contract deployment logic
Default
Uses default UDC (Universal Deployer Contract) if not specified