Paper Embedded wallet Service SDK
Paper is a developer-first NFT checkout solution that
easily onboard users without wallets or cryptocurrencies.
Installation
Install this SDK:
npm install @paperxyz/embedded-wallet-service-sdk
yarn add @paperxyz/embedded-wallet-service-sdk
pnpm add @paperxyz/embedded-wallet-service-sdk
Then get started right away:
import { PaperEmbeddedWalletSdk } from "@paperxyz/embedded-wallet-service-sdk";
const Paper = new PaperEmbeddedWalletSdk({
clientId: "YOUR_CLIENT_ID",
chain: "Mumbai",
});
const user = await Paper.auth.loginWithPaperModal();
const { transactionHash } = await user.wallet.gasless.callContract({
methodInterface: "function mintFreeNft(uint256 quantity) external",
methodArgs: [1],
contractAddress: "0x...",
});
Contributing
In your PR, if you want to release a new SDK version base on the current PR, run npm run changeset
and answer the prompts.
This will generate file(s) in the .changeset
folder. Commit those.
Upon merge, and new PR will be opened by the changeset bot to track the changes and prepare the SDK for release.
Once you're ready for release, simply merge the Version Packages
PR and the bot will handle maintaining a changelog, building the SDK, and releasing it to NPM.