Skip to main content

StarknetKeypairWallet

Defined in: atomiq-chain-starknet/src/starknet/wallet/accounts/StarknetKeypairWallet.ts:19

A simple keypair-based wallet implementation with a single key and not-upgradable, uses OpenZeppelin Account. Use this only for new keypair-based wallets which don't require additional features such as guardians, multisigs or upgradability.

Remarks

Don't use this for already deployed existing wallet account (Braavos, Xverse, Argent/Ready), as it will result in a different address even when used with the same key (this is because Starknet has native account abstraction capabilities and you need a correct combination of account type + key). For already deployed wallet accounts consider using DeployedStarkCurveWallet instead!

Extends

  • unknown

Constructors

Constructor

new StarknetKeypairWallet(provider, privateKey): StarknetKeypairWallet;

Defined in: atomiq-chain-starknet/src/starknet/wallet/accounts/StarknetKeypairWallet.ts:23

Parameters

ParameterType
providerProvider
privateKeystring

Returns

StarknetKeypairWallet

Overrides

Account.constructor

Properties

publicKey

readonly publicKey: string;

Defined in: atomiq-chain-starknet/src/starknet/wallet/accounts/StarknetKeypairWallet.ts:21

Methods

generateRandomPrivateKey()

static generateRandomPrivateKey(): string;

Defined in: atomiq-chain-starknet/src/starknet/wallet/accounts/StarknetKeypairWallet.ts:57

Generates a random Stark Curve private key for the OZ account

Returns

string


getDeploymentData()

getDeploymentData(): DeployAccountContractPayload;

Defined in: atomiq-chain-starknet/src/starknet/wallet/accounts/StarknetKeypairWallet.ts:45

Returns

DeployAccountContractPayload

Inherit Doc