Integration
This guide soley focuses on the code to integrate the Paymaster package. To see how this interacts with other packages in the sdk you can view the Smart Accounts Integration page.
Installation
First, install the required packages for initializing the Paymaster.
- npm
- yarn
- pnpm
npm install @biconomy/paymaster
yarn add @biconomy/paymaster
pnpm add @biconomy/paymaster
Integration Example
import { IPaymaster, BiconomyPaymaster } from "@biconomy/paymaster";
// create instance of paymaster
const paymaster: IPaymaster = new BiconomyPaymaster({
//https://dashboard.biconomy.io/ get paymaster urls from your dashboard
paymasterUrl: "",
});
info
Click here to learn more about our dashboard and how to get your own Paymaster URL
Once initialized you will be able to pass this paymaster instance to the Smart Account configuration to use in conjunction with our Smart Accounts. See our tutorials for in depth integrations of the Smart Account and Paymaster.