Skip to main content
Use Royalties to read the token and split used by license purchases. Call Remix to buy a license and record rights.

Payment split

License payments send 80% to the recorded creator and 20% to the configured treasury. In atomic units:
Integer division rounds the treasury fee down; the creator receives the remainder. A price of 1_000_001 splits into 800_001 for the creator and 200_000 for the treasury.

Read the configuration

Use publicClient and evmContracts from Contracts stack.
The token has six decimals on the verified deployments. Tempo Moderato currently uses OUSD despite the getter’s usdc name. See deployed contracts for the actual token per network.

Distribution interface

distributeLicensePayment(songId, payer, creator, licensePrice) returns the creator share and treasury fee and emits LicensePaymentDistributed. This call distributes a funded contract balance; it does not record license rights. Integrate purchases through Remix.buyLicense. LicensePaymentDistributed includes indexed songId, payer and creator, followed by licensePrice, creatorShare and treasuryFee. A zero-price purchase through Remix skips distribution. setUsdc(newUsdc), setTreasury(newTreasury) and transferAdmin(newAdmin) require the administrator. Configuration changes emit UsdcUpdated, TreasuryUpdated or AdminTransferred. The contract handles license payments. A song’s stored streamPrice does not start metered playback or automatic playback payouts. Royalties interface