UNPKG

openraas

Version:

Open Robot-as-a-Service Protocol - A comprehensive TypeScript library for building and consuming RaaS applications with X402 payment support on Solana

8 lines (7 loc) 379 B
import { Keypair } from '@solana/web3.js'; import { PaymentRequest, PaymentPayload } from './types'; export declare class X402Payment { static createRequest(receiver: string, amount: string, mint: string): PaymentRequest; static signRequest(keypair: Keypair, request: PaymentRequest): Promise<PaymentPayload>; static verifyPayment(payload: PaymentPayload): string; }