prepare_finalize
Prepare the post-purchase FINALIZE transactions for a Basename you now own: reclaim management rights, set the resolver, and point the name at your address (optionally set it as your primary name). A sale transfers the NFT but NOT the ENS registry management — until reclaim runs, the PREVIOUS owner can still change the name's resolver and records. Run this straight after a fill. Returns ordered calldata; the agent's own wallet signs and submits, and every call is msg.sender-enforced on-chain so the package is only usable by the owner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the name you own, e.g. 'alice' or 'alice.base.eth' | |
| owner | Yes | the address that now owns the name — must match on-chain ownerOf | |
| marketId | Yes | a name market id, e.g. 'basenames' | |
| setPrimary | No | also set this as the owner's primary name (ReverseRegistrar.setName) |