crossmint-sdk
crossmint-sdk copied to clipboard
Crossmint SDK for client and server integrations
crossmint-sdk (beta)
You can check the full documentation at docs.crossmint.com
The Crossmint SDK allows you to offer wallet-less credit card purchases on your NFT drop. It takes 5 lines of code and 5 minutes to integrate. It's free to use for the seller. You’ll get the sales proceeds in SOL/ETH as if the user was paying with their own wallet.
Get Started
To get started and for full integration instructions visit our documentation.
Migration guide to 0.1.X versions
Version 0.1.0 introduces breaking changes. To learn how to migrate from a version lower than 0.1.0, check out the migration guide.
Migration guide to 0.2.X versions
Version 0.2.0 introduces breaking changes. To learn how to migrate from a version lower than 0.2.0, check out the migration guide.
Changelog
Build from Source
- Clone the project:
git clone https://github.com/Crossmint/crossmint-sdk.git
- Install dependencies:
cd crossmint-sdk
pnpm install
- Build all packages:
pnpm build
- Run locally:
cd apps/payments/create-react-app
pnpm start
Remember that if doing changes on the @crossmint/client-sdk-react-ui package, they wont be reflected into your project until you rebuild the package and install it back again:
# Inside `packages/client/ui/react-ui`. Rebuild package
pnpm build
# Inside the starter. Eg. `packages/client/startes/nextjs-starter`. Install rebuilt package
pnpm install
Publish
- Locally, run
pnpm change:add- the CLI will guide you through selecting which packages you want to update + adding a short message for the changelog - Commit the generated
changesetfile to your PR - The
changeset-botwill comment on your PR when it detects a newchangesethas been added - Merge your PR, with the
changeset, tomain - A "Release packages" PR will be created/updated by the
changeset-bot, detailing the pending updates - Merge the "Release packages" PR to main - the new packages will automatically be published on the NPM registry
- Done!
(OLD) Publish (for the crossmint team)
pnpm build
pnpm test
pnpm run lerna version
pnpm build
pnpm run publish