Fetch Revenue Split Data
curl --request POST \
--url 'https://share-ddn.formless.xyz/v1#splits_fetch_data' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "splits_fetch_data",
"params": {
"contract_address": "0x1234567890abcdef1234567890abcdef12345678",
"network_id": 8453,
"page": 0,
"page_size": 25
}
}
'import requests
url = "https://share-ddn.formless.xyz/v1#splits_fetch_data"
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "splits_fetch_data",
"params": {
"contract_address": "0x1234567890abcdef1234567890abcdef12345678",
"network_id": 8453,
"page": 0,
"page_size": 25
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
id: '1',
method: 'splits_fetch_data',
params: {
contract_address: '0x1234567890abcdef1234567890abcdef12345678',
network_id: 8453,
page: 0,
page_size: 25
}
})
};
fetch('https://share-ddn.formless.xyz/v1#splits_fetch_data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://share-ddn.formless.xyz/v1#splits_fetch_data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'id' => '1',
'method' => 'splits_fetch_data',
'params' => [
'contract_address' => '0x1234567890abcdef1234567890abcdef12345678',
'network_id' => 8453,
'page' => 0,
'page_size' => 25
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://share-ddn.formless.xyz/v1#splits_fetch_data"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://share-ddn.formless.xyz/v1#splits_fetch_data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://share-ddn.formless.xyz/v1#splits_fetch_data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"total_slots": "<string>",
"total_splits": 123,
"community_allocation_percent": 123,
"percent_per_slot": 123,
"splits_data": [
{
"wallet_address": "<string>",
"percentage": 123,
"unique_id": "<string>",
"display_name": "<string>",
"email_address": "<string>",
"verified_identity": true
}
],
"pagination": {
"total_records": 123,
"current_page": 123,
"total_pages": 123,
"next_page": 123,
"prev_page": 123
},
"email_addresses": [
"<string>"
],
"split_percentage_owned_by_unique_id": 123
}
}Revenue Sharing
Fetch Split Data
Retrieve revenue split information for a smart contract
POST
/
v1#splits_fetch_data
Fetch Revenue Split Data
curl --request POST \
--url 'https://share-ddn.formless.xyz/v1#splits_fetch_data' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "splits_fetch_data",
"params": {
"contract_address": "0x1234567890abcdef1234567890abcdef12345678",
"network_id": 8453,
"page": 0,
"page_size": 25
}
}
'import requests
url = "https://share-ddn.formless.xyz/v1#splits_fetch_data"
payload = {
"jsonrpc": "2.0",
"id": "1",
"method": "splits_fetch_data",
"params": {
"contract_address": "0x1234567890abcdef1234567890abcdef12345678",
"network_id": 8453,
"page": 0,
"page_size": 25
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jsonrpc: '2.0',
id: '1',
method: 'splits_fetch_data',
params: {
contract_address: '0x1234567890abcdef1234567890abcdef12345678',
network_id: 8453,
page: 0,
page_size: 25
}
})
};
fetch('https://share-ddn.formless.xyz/v1#splits_fetch_data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://share-ddn.formless.xyz/v1#splits_fetch_data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'id' => '1',
'method' => 'splits_fetch_data',
'params' => [
'contract_address' => '0x1234567890abcdef1234567890abcdef12345678',
'network_id' => 8453,
'page' => 0,
'page_size' => 25
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://share-ddn.formless.xyz/v1#splits_fetch_data"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://share-ddn.formless.xyz/v1#splits_fetch_data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://share-ddn.formless.xyz/v1#splits_fetch_data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": \"1\",\n \"method\": \"splits_fetch_data\",\n \"params\": {\n \"contract_address\": \"0x1234567890abcdef1234567890abcdef12345678\",\n \"network_id\": 8453,\n \"page\": 0,\n \"page_size\": 25\n }\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"total_slots": "<string>",
"total_splits": 123,
"community_allocation_percent": 123,
"percent_per_slot": 123,
"splits_data": [
{
"wallet_address": "<string>",
"percentage": 123,
"unique_id": "<string>",
"display_name": "<string>",
"email_address": "<string>",
"verified_identity": true
}
],
"pagination": {
"total_records": 123,
"current_page": 123,
"total_pages": 123,
"next_page": 123,
"prev_page": 123
},
"email_addresses": [
"<string>"
],
"split_percentage_owned_by_unique_id": 123
}
}Fetch detailed information about revenue splits for a contract, including all split holders, their percentages, and identity information. Results are paginated with a maximum of 25 splits per page.
Authorizations
JWT token with Unique ID identification
Body
application/json
⌘I
