pipegate-sdk
Version:
A TypeScript client-side payment authentication SDK for stablecoins used with axios
36 lines (35 loc) • 796 B
TypeScript
export interface PaymentChannelResponse {
address: string;
sender: string;
recipient: string;
balance: string;
nonce: string;
expiration: string;
channel_id: string;
}
export interface RequestConfig {
amount: string;
data: any;
}
export interface SignedRequest {
message: `0x${string}`;
signature: string;
timestamp: string;
}
export interface CreateChannelParams {
recipient: `0x${string}`;
duration: number;
tokenAddress: `0x${string}`;
amount: number;
}
export interface CreateChannelResponse {
channelId: bigint;
channelAddress: `0x${string}`;
sender: `0x${string}`;
recipient: `0x${string}`;
duration: bigint;
tokenAddress: `0x${string}`;
amount: bigint;
price: bigint;
timestamp: bigint;
}