Get Deposit Onchain Supported Chains
curl --request GET \
--url https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains', 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://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Deposit onchain supported chains retrieved successfully.",
"data": {
"FUSE": [
"USDT",
"USDC"
],
"CELO": [
"CUSD"
],
"ETHEREUM": [
"USDT",
"USDC"
],
"POLYGON": [
"USDC"
]
}
}{
"success": false,
"message": "Bad Request",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}Crypto Deposits (On-Chain)
Get Supported Chains & Tokens
deprecated
This endpoint will be used to get the supported chains for deposit onchain
GET
/
api
/
v3
/
deposit
/
on-chain
/
supported-chains
Get Deposit Onchain Supported Chains
curl --request GET \
--url https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains', 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://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.kotanipay.com/api/v3/deposit/on-chain/supported-chains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Deposit onchain supported chains retrieved successfully.",
"data": {
"FUSE": [
"USDT",
"USDC"
],
"CELO": [
"CUSD"
],
"ETHEREUM": [
"USDT",
"USDC"
],
"POLYGON": [
"USDC"
]
}
}{
"success": false,
"message": "Bad Request",
"data": {}
}{
"success": false,
"message": "Unauthorized",
"data": {}
}Get the list of supported blockchain networks and tokens for deposit on-chain transactions.
Use Case
Use this endpoint to:- Display available crypto options to your users
- Validate chain/token combinations before initiating deposits
- Build dynamic UI for chain/token selection
Response Format
{
"data": {
"POLYGON": ["USDT", "USDC"],
"ETHEREUM": ["USDT", "USDC"],
"CELO": ["CUSD"],
"STELLAR": ["USDC"],
"SOLANA": ["USDT", "USDC"],
"TRON": ["USDT"],
"BASE": ["USDC"]
}
}
Integration Example
// Fetch supported chains
const response = await fetch('https://api.kotanipay.com/api/v3/deposit/on-chain/supported-chains', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const { data } = await response.json();
// Display to user
Object.entries(data).forEach(([chain, tokens]) => {
console.log(`${chain}: ${tokens.join(', ')}`);
});
// Validate user selection
function isValidSelection(chain, token) {
return data[chain]?.includes(token) ?? false;
}
// Example
console.log(isValidSelection('POLYGON', 'USDT')); // true
console.log(isValidSelection('POLYGON', 'DAI')); // false
Notes
- Supported chains/tokens may vary by country
- Check this endpoint periodically for updates
- Some chains may have minimum amounts (check pricing)