Subscriptions is a feature that allows users to subscribe to applications and be charged on a periodic basis such as monthly, weekly, or quarterly. Users will be charged the moment they subscribe
// connect to the extensionawaitwindow.arweaveWallet.connect(["ACCESS_ALL_ADDRESSES"]);// submit the subscription informationconstsubscription=awaitwindow.arweaveWallet.subscription({ arweaveAccountAddress:"hY70z-mbKfDByqXh4y43ybSxReFVo1i9lB1dDdCkO_U", applicationName:"ArConnect", subscriptionName:"ArConnect Premium", subscriptionManagementUrl:"https://www.arconnect.io/premium", subscriptionFeeAmount:0.5, recurringPaymentFrequency:"Monthly", subscriptionEndDate:newDate("2024-12-31"), applicationIcon:"https://www.arconnect.io/logo",});// Subscription will output the details and the initial payment txnconsole.log("Subscription details with paymentHistory array:", subscription);