Skip to content

getDefaultSingleSignerValidationModuleAddress

Maps a given chain to a specific address of the single signer validation module by its chain ID. If no direct mapping exists, it defaults to returning a specific address.

Import

import { getDefaultSingleSignerValidationModuleAddress } from "@account-kit/smart-contracts";

Usage

import { getDefaultSingleSignerValidationModuleAddress } from "@account-kit/smart-contracts";
import { Chain, Address } from "viem";
 
const chain: Chain = ...
const singleSignerValidationAddress: Address = getDefaultSingleSignerValidationModuleAddress(chain);

Parameters

chain

Chain The chain object containing the chain ID to map

Returns

Address The single signer validation module address associated with the specified chain ID or a default address if no specific mapping exists