Installation

Follow these steps to perform the initial setup of the SDK:

  1. Run the following command to install the SDK package from NPM:

    npm install zk3-sdk
  2. Wrap your project in the ZK3Provider :

    _app.tsx
    import { ZK3Provider } from 'zk3-sdk'
    
    // The ZK3 SDK depends on wagmi so set up your client here
    
    // Then wrap the Providers like so:
    return (
          <WagmiConfig client={wagmiClient}>
                <ZK3Provider pinataJWT={process.env.NEXT_PUBLIC_PINATA_JWT}>
                {props.children}
                </ZK3Provider>
          </WagmiConfig>
    )
  3. You are ready to use the SDK!

The SDK uses pinata (https://www.pinata.cloud/) in order to upload posts to IPFS. Please provide a pinata key in order to use this feature of the SDK. Providing a pinata key is optional and does not affect the functionality of the SDK outside of IPFS uploads (arweave uploads coming soon!)

Last updated