curl --request POST \
--url https://api.rach.finance/api/v1/wallet/fees \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"is_enabled": true,
"fee_percent": "0.005",
"fee_cap_usd": "5",
"flat_fee_usd": "0.50",
"fee_addresses": {
"ETH": "0xYourAddr",
"BSC": "0xYourAddr",
"TRX": "TYourAddr"
}
}
'import requests
url = "https://api.rach.finance/api/v1/wallet/fees"
payload = {
"is_enabled": True,
"fee_percent": "0.005",
"fee_cap_usd": "5",
"flat_fee_usd": "0.50",
"fee_addresses": {
"ETH": "0xYourAddr",
"BSC": "0xYourAddr",
"TRX": "TYourAddr"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
is_enabled: true,
fee_percent: '0.005',
fee_cap_usd: '5',
flat_fee_usd: '0.50',
fee_addresses: {ETH: '0xYourAddr', BSC: '0xYourAddr', TRX: 'TYourAddr'}
})
};
fetch('https://api.rach.finance/api/v1/wallet/fees', 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.rach.finance/api/v1/wallet/fees",
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([
'is_enabled' => true,
'fee_percent' => '0.005',
'fee_cap_usd' => '5',
'flat_fee_usd' => '0.50',
'fee_addresses' => [
'ETH' => '0xYourAddr',
'BSC' => '0xYourAddr',
'TRX' => 'TYourAddr'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.rach.finance/api/v1/wallet/fees"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.rach.finance/api/v1/wallet/fees")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/api/v1/wallet/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}"
response = http.request(request)
puts response.read_bodySet your WaaS transfer fee configuration
Configures the fee you charge on every customer transfer. Rach deducts it from the transfer amount and sends it on-chain directly to your address — Rach never holds it.
A network with no address in fee_addresses collects no fee on that network. Add one for
every network you want to earn on.
USD figures (fee_cap_usd, flat_fee_usd) convert to the asset at the current market rate;
stablecoins convert 1:1. On UTXO chains (BTC/LTC/BCH) the fee is an extra output in the same
transaction so fee_tx_hash is empty; on every other chain it is a second transaction.
This is YOUR fee. It is separate from — and additional to — the TRON sponsorship fee Rach deducts on sponsored TRON USDT transfers (see the transfer endpoint).
curl --request POST \
--url https://api.rach.finance/api/v1/wallet/fees \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"is_enabled": true,
"fee_percent": "0.005",
"fee_cap_usd": "5",
"flat_fee_usd": "0.50",
"fee_addresses": {
"ETH": "0xYourAddr",
"BSC": "0xYourAddr",
"TRX": "TYourAddr"
}
}
'import requests
url = "https://api.rach.finance/api/v1/wallet/fees"
payload = {
"is_enabled": True,
"fee_percent": "0.005",
"fee_cap_usd": "5",
"flat_fee_usd": "0.50",
"fee_addresses": {
"ETH": "0xYourAddr",
"BSC": "0xYourAddr",
"TRX": "TYourAddr"
}
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
is_enabled: true,
fee_percent: '0.005',
fee_cap_usd: '5',
flat_fee_usd: '0.50',
fee_addresses: {ETH: '0xYourAddr', BSC: '0xYourAddr', TRX: 'TYourAddr'}
})
};
fetch('https://api.rach.finance/api/v1/wallet/fees', 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.rach.finance/api/v1/wallet/fees",
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([
'is_enabled' => true,
'fee_percent' => '0.005',
'fee_cap_usd' => '5',
'flat_fee_usd' => '0.50',
'fee_addresses' => [
'ETH' => '0xYourAddr',
'BSC' => '0xYourAddr',
'TRX' => 'TYourAddr'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.rach.finance/api/v1/wallet/fees"
payload := strings.NewReader("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.rach.finance/api/v1/wallet/fees")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rach.finance/api/v1/wallet/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"is_enabled\": true,\n \"fee_percent\": \"0.005\",\n \"fee_cap_usd\": \"5\",\n \"flat_fee_usd\": \"0.50\",\n \"fee_addresses\": {\n \"ETH\": \"0xYourAddr\",\n \"BSC\": \"0xYourAddr\",\n \"TRX\": \"TYourAddr\"\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Business API key for server-to-server integrations.
Key prefix determines the environment — no separate flag needed:
test_sk_* = sandbox/testnet, live_sk_* = production/mainnet.
Body
Master switch. When false, no fee is collected on any transfer.
percentage = fee_percent of the amount, optionally capped at fee_cap_usd. flat = a fixed flat_fee_usd charge.
percentage, flat A FRACTION, not a percent — "0.005" means 0.5%. Percentage mode only.
"0.005"
Caps the percentage fee in USD. "0" = uncapped. Percentage mode only.
"5"
Fixed USD charge, converted to the transferred asset. Flat mode only.
"0.50"
Network code → YOUR receiving address. A network with no address collects NO fee.
Show child attributes
Show child attributes
{ "ETH": "0xYourAddr", "BSC": "0xYourAddr", "TRX": "TYourAddr" }
Response
Fee configuration saved

