> For the complete documentation index, see [llms.txt](/llms.txt).

# Use the ownership transfer scope

The ownership transfer scope restricts a delegation to ownership transfer calls only. For example, Alice has deployed a smart contract, and she delegates to Bob the ability to transfer ownership of that contract.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

- [Install and set up the Smart Accounts Kit.](/smart-accounts-kit/development/get-started/install/)
- [Configure the Smart Accounts Kit.](/smart-accounts-kit/development/guides/configure-toolkit/)
- [Create a delegator account.](/smart-accounts-kit/development/guides/delegation/execute-on-smart-accounts-behalf/#3-create-a-delegator-account)
- [Create a delegate account.](/smart-accounts-kit/development/guides/delegation/execute-on-smart-accounts-behalf/#4-create-a-delegate-account)

## Ownership transfer scope[​](#ownership-transfer-scope "Direct link to Ownership transfer scope")

This scope requires a `contractAddress`, which represents the address of the deployed contract.

Internally, this scope uses the [ownershipTransfer](/smart-accounts-kit/development/reference/delegation/caveats/#ownershiptransfer) [caveat enforcer](/smart-accounts-kit/development/reference/glossary#caveat-enforcer)**Caveat enforcer** A smart contract that enforces delegation rules by validating caveat conditions during redemption hooks.. See the [ownership transfer scope reference](/smart-accounts-kit/development/reference/delegation/delegation-scopes/#ownership-transfer-scope) for more details.

```
import { createDelegation, ScopeType } from '@metamask/smart-accounts-kit'

const contractAddress = '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238'

const delegation = createDelegation({
  scope: {
    type: ScopeType.OwnershipTransfer,
    contractAddress,
  },
  to: delegateAccount,
  from: delegatorAccount,
  environment: delegatorAccount.environment,
})

```

## Next steps[​](#next-steps "Direct link to Next steps")

See [how to further constrain the authority of a delegation](/smart-accounts-kit/development/guides/delegation/use-delegation-scopes/constrain-scope/) using caveat enforcers.
