Create a Pay-For-Access (PFA) smart contract for a song on the blockchain
Create a PFA (Pay-For-Access) smart contract for a song on the blockchain. PFA stands for “Pay-For-Access”. It represents a song that is available for sale on the SHARE protocol. Unlike NFTs where ownership of a collectible is transferred, PFA contracts grant users access to content while keeping ownership of the contract with the creator, similar to mechanical royalties.Documentation Index
Fetch the complete documentation index at: https://docs.formless.xyz/llms.txt
Use this file to discover all available pages before exploring further.
revenue_source.product.type to "pfa" and include pay_for_access_metadata:
price_per_access_usd: The price users pay to access the full song (e.g., 0.99 for $0.99).preview: Contains metadata for the free preview version of the song (typically a 30-second clip).grant: Contains metadata for the full version users receive after purchase.supports_licensing: Whether the song can be licensed for commercial use.license_type: Type of license (e.g., “UNLIMITED_LEASE_V1”).recipients: A mapping of email addresses to percentage shares (must total 100).distribution_unit: The amount distributed per sale and the currency.JWT token with Unique ID identification