Payment Methods
Methods for making one-time payments in the Papaya protocol
pay()
pay()async pay(receiver: string, amount: bigint | number): Promise<ethers.TransactionResponse>const recipientAddress = '0x...';
// Format the amount correctly (20 USDT with 6 decimals)
const amount = formatInput('20', 6);
// Make the payment
const tx = await papaya.pay(recipientAddress, amount);
await tx.wait();Last updated