Skip to main content
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.

Song Contract Example

To create a song contract, set the revenue_source.product.type to "pfa" and include pay_for_access_metadata:

Response

PFA Metadata Parameters

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”).

Revenue Share

  • recipients: A mapping of email addresses to percentage shares (must total 100).
  • distribution_unit: The amount distributed per sale and the currency.