@dexlens/holders-gate
v0.0.2
Published
Holders Gate for DexLens Dapps
Readme
Holders Gate for DexLens Dapps
Holder Gate SDK for DexLens Dapps to allow different types of access control to dapps.
Getting started
Run npm install @dexlens/holders-gate to install the package.
What's in the box?
- tsup for TypeScript building
- Node.js test runner for testing
- Biome for formatting
How to use
import { holderGate } from "@dexlens/holders-gate";
const gate = new holderGate({
tokenAddress: "0x1234567890123456789012345678901234567890",
tokenId: "1",
gateType: "whitelist",
});
const isHolder = await gate.isHolder();
if (isHolder) {
// do something with the gate allowed
} else {
// do something else with the gate not allowed
}