Skip to main content

Create Token Contract

Description

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

Example

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

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

// Creates a Fungible token contract
await sdk.App.createToken({
name: "Fungible Token",
symbol: "TKN",
decimal: 18,
supply: 1000,
});