Module SDK
Ownable Validator

Ownable Validator

The Ownable Validator module is a module that allows you to add an ECDSA owner to an account. The owner can then be used to validate transactions and other executions on the account.

You can find the source code for the module in the ModuleKit examples (opens in a new tab) and the deployment address in the address book.


The getOwnableValidator function is used to create an instance of the Ownable Validator module. The ownerAddress is the address of the EOA that should be the owner of this account. This function returns a module object.

import { getOwnableValidator } from "@rhinestone/module-sdk";
const ownableValidator = getOwnableValidator({


The getOwnableValidatorMockSignature function is used to get a mock signature for the validator. This is used to calculate the gas of an ERC-4337 UserOperation. This function returns a hex-encoded signature.

import { getOwnableValidatorMockSignature } from "@rhinestone/module-sdk";
const mockSignature = getOwnableValidatorMockSignature();


The OWNABLE_VALIDATOR_ADDRESS is a constant that represents the module address.