Documentation
API Reference
Complete API reference for PyHard Vendor SDK
Types
1interface Subscription {
2 id: string;
3 smartWallet: string;
4 vendor: string;
5 amountPerInterval: string;
6 interval: string;
7 lastPayment: string;
8 active: boolean;
9}
10
11interface Payment {
12 id: string;
13 subscriptionId: string;
14 amount: string;
15 timestamp: string;
16 transactionHash: string;
17}
18
19interface QRCodeData {
20 type: 'subscription' | 'payment';
21 data: any;
22 qrCode: string;
23}Configuration
1interface PyHardConfig {
2 projectId: string;
3 chainId: number;
4 paymasterUrl: string;
5 blockscoutUrl?: string;
6}