@paperxyz/embedded-wallet-service-sdk v1.2.5
Paper is a developer platform for NFT commerce that easily onboards users without a wallet or cryptocurrency.
Documentation
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";
// initialize the SDK
const Paper = new PaperEmbeddedWalletSdk({
clientId: "YOUR_CLIENT_ID",
chain: "Mumbai",
});
// log the user in
const user = await Paper.auth.loginWithPaperModal();
// Execute a transaction without the user wallet needing gas money
const { transactionHash } = await user.wallet.gasless.callContract({
methodInterface: "function mintFreeNft(uint256 quantity) external",
methodArgs: [1],
contractAddress: "0x...",
});
Contributing
Please review our guidelines for more details.
8 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
12 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago