Extensions
Extensions are external smart contracts that can be added to the Paymaster contract. These extensions are used to enforce specific conditions or rules that must be met for a transaction to be eligible
createExtension
async function createExtension(
name: string,
type: ExtensionMethod,
wallet: WalletClient,
client: unknown,
items?: ExtensionItems,
restrictionFactoryABI?: Abi,
restrictionFactoryContractAddress?: Address
): Promise<Address>types
PaymasterParams
PaymasterType
ExtensionMethod
PaymasterOptions
PaymasterOverrides
BaseRestrictionItem
AddressOrBaseRestrictionItem
ContractItems
UserItems
FunctionItems
RestrictionItems
Last updated