Skip to main content

react

Home > @openformat/react

React SDK Package

Functions

FunctionDescription
ConnectButton(props)
OpenFormatProvider({ children, config, })The Provider for the Open Format SDK
useApproveNFT(nft)Hook to grant approvals for NFTs
useApproveToken(token)Hook to grant approvals for tokens
useBatchMint(nft)Hook to batch mint
useBurnNFT(nft)Hook to mint
useBurnToken(token)Hook to mint
useChain()Hook to get the wallet state
useConnect()Hook for connecting to account with connectors.
useContract(address)Create a contract instance from it's address
useDisconnect()Hook for disconnecting the connected account.
useFactory()Create apps
useIsWalletModalOpen()Hook to get the wallet modal open state
useMintNFT(token)Hook to mint an NFT
useMintToken(token)Hook to mint ERC20 tokens
useOpenFormat()Gets the Open Format Context
useRawRequest({ query: rawQuery, variables, config, })Performs a custom query against the subgraph
useSetIsWalletModalOpen()Hook for setting the wallet modal to open
useSigner()Hook to access the signer
useSwitchNetwork()Hook to handle network switching
useTransferNFT(nft)Hook to transfer tokens
useTransferToken(token)Hook to transfer tokens
useWallet()Hook to get the wallet state