🗃️SDK

Installation

npm install basepass-sdk

Quick Start

import { BasePass } from "basepass-sdk";

const bp = new BasePass({
  creatorWallet: "0xYOUR_CREATOR_ADDRESS",
});

const hasAccess = await bp.checkAccess("0xSUBSCRIBER_WALLET");

Configuration

const bp = new BasePass({
  creatorWallet: "0xCREATOR",     // required
  network: "mainnet",             // "mainnet" (default) or "sepolia"
  rpcUrl: "https://custom.rpc",   // optional custom RPC
});

Methods

checkAccess(walletAddress)

Returns true if the wallet has an active subscription.

getSubscriptionStatus(walletAddress)

Returns detailed subscription info.

getCreatorInfo()

Returns creator data from the contract.

Integration Examples

circle-info

The SDK reads directly from the blockchain. For production, use a dedicated RPC provider and pass your URL via the rpcUrl option.

Was this helpful?