@cdr-kit/react/Hooks/useCreateVault
useCreateVault
Seller-side: call the CdrKitVault factory to mint the NFT, register the IP asset, allocate the CDR slot, and configure the read condition — in one transaction.
import { useCreateVault } from "@cdr-kit/react"
Signature
function useCreateVault(): (params: {
readConditionAddr: Hex;
readConfig: Hex;
childConditions?: Hex[];
childConfigs?: Hex[];
licenseTermsId?: bigint;
value?: bigint;
gas?: bigint;
vault?: Hex;
}) => Promise<Hash>;