Type alias SmartSessionUseActions<TModularSmartAccount>

SmartSessionUseActions<TModularSmartAccount>: {
    usePermission: ((args) => Promise<Hash>);
}

Defines the shape of actions available for using smart sessions.

Type Parameters

  • TModularSmartAccount extends ModularSmartAccount | undefined

    Type of the modular smart account, extending ModularSmartAccount or undefined.

Type declaration

  • usePermission: ((args) => Promise<Hash>)

    Uses a session to perform an action.

    Returns

    A promise that resolves to the transaction hash.