LogoLogo
LogoLogo
  • FORMLESS NETWORK
    • Overview
  • SHARE
    • SHARE SDK
      • Authentication
      • Payouts
      • Smart Contracts
      • Prepaying for API Credits
    • SHARE App
      • Smart Contract Creation
        • Sell a Beat
        • Sell a Song
        • Sell a Video
        • Sell an Album
        • Sell a Collection with Community Splits
        • Create a Community Splits Contract
      • Frequently Asked Questions
    • SHARE Protocol
  • TUTORIALS
    • Cashing Out to Your Bank
    • Collections Revenue Flow
    • For Symphonic Customers
      • Get Your Streaming Money Paid Out Same Day
      • Share Streaming Money with Fans
      • Add SHARE Protocol as a Payee
      • Assign Royalty Splits to SHARE Protocol
      • Connect Track Earnings to a Smart Contract using a Form
      • Connect Track Earnings to a Smart Contract using SHARE SDK
      • Receiving Realtime Royalty Payouts
    • For Distribution Businesses
      • Getting Started
      • SHARE Enterprise Dashboard
        • Your Custom Branded Portal
        • Logging in and Adding Authorized Users
        • Viewing Your Revenue Analytics and Balance
        • Viewing Customers
        • How Revenue Splits Work on D2C Sales
      • SHARE API and SDK Access
        • Shared Ownership and Large-Scale Fractionalized Payouts
        • Connect DSP Earnings to SHARE with No-Code
        • How Your Customers Can Create Splits Contracts
        • Create a Community Splits Contract using SHARE UI
        • Execute a Programmatic Payment
        • How to Verify FORMLESS Account IDs
        • Add SHARE Protocol Split Contract as a Payee
Powered by GitBook
On this page
  1. TUTORIALS
  2. For Distribution Businesses
  3. SHARE API and SDK Access

Add SHARE Protocol Split Contract as a Payee

This guide provides step by step instructions for using a split contract as a payee within your system.

At royalty split creation time your customers can enter the ID of a splits contract instead of an email address as a payment recipient. In your service, this call should be invoked during the Royalty Splits -> New Royalty Split -> Add Payee flow. When a customer is prompted to enter the email address of a payee, they can instead enter the contract ID as a payee.

  1. Validate that the contract exists using the contracts_get_by_id endpoint.

curl -v -X POST 'https://share-ddn.formless.xyz/v1' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $API_KEY" \
-d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "contracts_get_by_id",
    "params": {
        "contract_id": "32843127-d5d9-41d7-b1ad-508de4f86693"
    }
}'

Response

{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "success": true,
        "contract_address": "0xb1303e1cAffC4A0dfA4D67227D53aA384d7f962d",
        "network_id": 137
    }
}

Note that success is true, indicating that this payee represents a valid smart contract.

  1. Store this contract ID in your system in the same way a payee referenced by email would be stored. This contract ID will be referenced again at payout time.

PreviousHow to Verify FORMLESS Account IDs

Last updated 4 months ago