Skip to main content
POST
/
v1#contracts_create
Create Revenue Sharing Contract
curl --request POST \
  --url 'https://share-ddn.formless.xyz/v1#contracts_create' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "contracts_create",
  "params": {
    "type": "digital_property_with_revenue_share",
    "network": "base",
    "title": "HYPERMAX SNEAKER RELEASE",
    "description": "Community revenue sharing for HYPERMAX sneaker release",
    "creator_name": "HYPERMAX Brand",
    "revenue_source": {
      "product": {
        "type": "product"
      }
    },
    "revenue_share": {
      "recipients": {},
      "community_allocation_percent": 100,
      "community_split_count": 100,
      "distribution_unit": {
        "value": 1,
        "currency": "USD"
      }
    }
  }
}'
{
  "jsonrpc": "2.0",
  "id": "<string>",
  "result": {
    "status": "success",
    "code": 200,
    "network_id": 123,
    "blockchain_name": "<string>",
    "revenue_share_smart_contract_address": "<string>",
    "digital_property_contract_address": "<string>",
    "digital_property_contract_id": "<string>",
    "join_splits_url": "<string>"
  }
}
Create a revenue sharing smart contract on the blockchain to automatically split payments among recipients and community members.

Authorizations

Authorization
string
header
required

JWT token with Unique ID identification

Body

application/json
jsonrpc
enum<string>
default:2.0
required
Available options:
2.0
id
string
default:1
required
method
enum<string>
default:contracts_create
required
Available options:
contracts_create
params
object
required

Response

200 - application/json

Successful response

jsonrpc
enum<string>
required
Available options:
2.0
id
string
required
result
object
required
  • Option 1
  • Option 2
I