pxlpay-verifier-sdk
v1.0.2
Published
SDK Verifier endpoints wrapper for PxlPay Backend
Readme
PxlPay Verifier Client
A lightweight, dependency‑free TypeScript client for the PxlPay Verifier API.
Features
- Retrieve verification results by session ID or session key
- List all verification results for a user in a marketplace
- List all verification session keys for a marketplace
- Full TypeScript support with exported interfaces
Installation
npm install pxlpay-verifier-sdk
bun add pxlpay-verifier-sdkUsage
import { VerifierClient } from 'pxlpay-verifier-sdk';
// Initialize the client (API key required)
const verifier = new VerifierClient({
baseURL: 'https://pay.pxlrs.dev',
apiKey: 'your-api-key',
});
// Get verification result by session ID
const result = await verifier.getBySessionId('session-id-there');
// Get verification result by session key (address-based key)
const resultByKey = await verifier.getBySessionKey('session:<network>:<address>');
// Get all verification results for a user in a marketplace
const userResults = await verifier.getByUser('marketplace_id', 'frontend-defined-customer-id');
// List all verification session keys for a marketplace
const sessionKeys = await verifier.listMarketplaceSessions('marketplace_id');API Reference
See full documentation for all available methods and types. https://pay.pxlrs.dev/api
License
MIT
