Skip to main content

Create NFT Contract

Description

Whilst we continue to build out our React Hooks SDK, you can create NFT contracts using the useOpenFormat() hook.

Example

import { useOpenFormat } from "@openformat/react";

// Get SDK instance
const { sdk } = useOpenFormat();

// Creates an NFT contract
await sdk.App.createNFT({
name: "NFT",
symbol: "NFT",
royaltyRecipient: "0x123..."
royaltyBps: 1000,
});