Get paid for your Web content with Solid and Web Monetization
solid-monetize
combines Inrupt's lit-pod
solid-client
with
the revolutionary potential of Web Monetization to make it easy to monetize your content.
This library provides a single Javascript function that will pull your Interledger Payment Pointer from your Solid WebID Profile. To configure your payment pointer you can use Understory Garden or a number of other Solid applications.
see the examples below
npm install solid-monetize
Assuming you have configured your Solid Pod Profile with a Payment Pointer you can use the usePaymentPointer
hook to
create a meta tag that will monetize your page:
import { getPaymentPointer } from "solid-monetize"
function getMyPaymentPointer({}){
const webId = "https://travis.myunderstory.com/profile/card#me"
return getPaymentPointer(webId)
}