Distribute Funds
curl --request POST \
--url https://api.inprocess.world/api/distribute \
--header 'Content-Type: application/json' \
--data '
{
"splitAddress": "<string>",
"tokenAddress": "0x0000000000000000000000000000000000000000",
"chainId": 8453
}
'import requests
url = "https://api.inprocess.world/api/distribute"
payload = {
"splitAddress": "<string>",
"tokenAddress": "0x0000000000000000000000000000000000000000",
"chainId": 8453
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
splitAddress: '<string>',
tokenAddress: '0x0000000000000000000000000000000000000000',
chainId: 8453
})
};
fetch('https://api.inprocess.world/api/distribute', 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://api.inprocess.world/api/distribute",
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([
'splitAddress' => '<string>',
'tokenAddress' => '0x0000000000000000000000000000000000000000',
'chainId' => 8453
]),
CURLOPT_HTTPHEADER => [
"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://api.inprocess.world/api/distribute"
payload := strings.NewReader("{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.inprocess.world/api/distribute")
.header("Content-Type", "application/json")
.body("{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inprocess.world/api/distribute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"hash": "0xTransactionHash"
}{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}Splits
Distribute Funds
Distribute funds from a split contract. This endpoint allows you to trigger the distribution of tokens (native or ERC20) from a split contract to its recipients according to their configured allocations.
This is a public endpoint and does not require authentication.
POST
/
distribute
Distribute Funds
curl --request POST \
--url https://api.inprocess.world/api/distribute \
--header 'Content-Type: application/json' \
--data '
{
"splitAddress": "<string>",
"tokenAddress": "0x0000000000000000000000000000000000000000",
"chainId": 8453
}
'import requests
url = "https://api.inprocess.world/api/distribute"
payload = {
"splitAddress": "<string>",
"tokenAddress": "0x0000000000000000000000000000000000000000",
"chainId": 8453
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
splitAddress: '<string>',
tokenAddress: '0x0000000000000000000000000000000000000000',
chainId: 8453
})
};
fetch('https://api.inprocess.world/api/distribute', 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://api.inprocess.world/api/distribute",
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([
'splitAddress' => '<string>',
'tokenAddress' => '0x0000000000000000000000000000000000000000',
'chainId' => 8453
]),
CURLOPT_HTTPHEADER => [
"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://api.inprocess.world/api/distribute"
payload := strings.NewReader("{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.inprocess.world/api/distribute")
.header("Content-Type", "application/json")
.body("{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inprocess.world/api/distribute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"splitAddress\": \"<string>\",\n \"tokenAddress\": \"0x0000000000000000000000000000000000000000\",\n \"chainId\": 8453\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"hash": "0xTransactionHash"
}{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}{
"status": "error",
"message": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}Body
application/json
The address of the split contract to distribute from
The address of the token to distribute (optional, defaults to zero address for native token)
Chain ID where the split contract exists (default: Base, 8453)
⌘I