curl --request PATCH \
--url https://api.coinstats.app/v1/wallet/transactions \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"wallets": [
{
"address": "0x123456789abcdef",
"connectionId": "ethereum"
},
{
"address": "0x987654321fedcba",
"blockchain": "binance_smart"
}
]
}
'import requests
url = "https://api.coinstats.app/v1/wallet/transactions"
payload = { "wallets": [
{
"address": "0x123456789abcdef",
"connectionId": "ethereum"
},
{
"address": "0x987654321fedcba",
"blockchain": "binance_smart"
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
wallets: [
{address: '0x123456789abcdef', connectionId: 'ethereum'},
{address: '0x987654321fedcba', blockchain: 'binance_smart'}
]
})
};
fetch('https://api.coinstats.app/v1/wallet/transactions', 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.coinstats.app/v1/wallet/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'wallets' => [
[
'address' => '0x123456789abcdef',
'connectionId' => 'ethereum'
],
[
'address' => '0x987654321fedcba',
'blockchain' => 'binance_smart'
]
]
]),
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.coinstats.app/v1/wallet/transactions"
payload := strings.NewReader("{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.coinstats.app/v1/wallet/transactions")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinstats.app/v1/wallet/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "synced"
}{
"statusCode": 400,
"message": "Bad Request",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 401,
"message": "Unauthorized",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 403,
"message": "Forbidden",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 404,
"message": "Not Found",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 409,
"message": "Transactions not synced",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 503,
"message": "Service Unavailable. Please Contact Support"
}Transactions Sync
Initiate syncing process to update transaction data.
curl --request PATCH \
--url https://api.coinstats.app/v1/wallet/transactions \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"wallets": [
{
"address": "0x123456789abcdef",
"connectionId": "ethereum"
},
{
"address": "0x987654321fedcba",
"blockchain": "binance_smart"
}
]
}
'import requests
url = "https://api.coinstats.app/v1/wallet/transactions"
payload = { "wallets": [
{
"address": "0x123456789abcdef",
"connectionId": "ethereum"
},
{
"address": "0x987654321fedcba",
"blockchain": "binance_smart"
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
wallets: [
{address: '0x123456789abcdef', connectionId: 'ethereum'},
{address: '0x987654321fedcba', blockchain: 'binance_smart'}
]
})
};
fetch('https://api.coinstats.app/v1/wallet/transactions', 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.coinstats.app/v1/wallet/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'wallets' => [
[
'address' => '0x123456789abcdef',
'connectionId' => 'ethereum'
],
[
'address' => '0x987654321fedcba',
'blockchain' => 'binance_smart'
]
]
]),
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.coinstats.app/v1/wallet/transactions"
payload := strings.NewReader("{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.coinstats.app/v1/wallet/transactions")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coinstats.app/v1/wallet/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallets\": [\n {\n \"address\": \"0x123456789abcdef\",\n \"connectionId\": \"ethereum\"\n },\n {\n \"address\": \"0x987654321fedcba\",\n \"blockchain\": \"binance_smart\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "synced"
}{
"statusCode": 400,
"message": "Bad Request",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 401,
"message": "Unauthorized",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 403,
"message": "Forbidden",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 404,
"message": "Not Found",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 409,
"message": "Transactions not synced",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"requestId": "11111111-2222-3333-4444-555555555555",
"path": "<requested-endpoint>"
}{
"statusCode": 503,
"message": "Service Unavailable. Please Contact Support"
}Multipliers
Multipliers
Single wallet
Single wallet
Example: { address: “0x123…”, connectionId: “ethereum” }
Multiple wallets
Multiple wallets
{ wallets: [{ address: “0x123…”, connectionId: “ethereum” }] }
Required
Required
- Single-wallet form: query params
address+connectionId. - Multi-wallet form: JSON body with
walletsarray (each item\{ address, connectionId \}). - At least one wallet must be provided.
Authorizations
API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.
Query Parameters
Wallet address for single wallet sync
The identifier of connection for single wallet sync, which you received from /wallet/blockchains call response. Can be a single network (e.g., "ethereum") or a comma-separated list of networks or "all" for all connections. Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.
"base-wallet"
The blockchain network identifier from /wallet/blockchains call response. Can be a single network (e.g., "ethereum") or a comma-separated list of networks (e.g., "ethereum,polygon,binance_smart"). Either connectionId or blockchain must be provided. If both are provided, connectionId will be used.
"base"
Body
Array of wallets to sync transactions for
Show child attributes
Show child attributes
[ { "address": "0x123456789abcdef", "connectionId": "ethereum" }, { "address": "0x987654321fedcba", "blockchain": "binance_smart" } ]
Response
Start syncing transactions
The current synchronization status of the portfolio
syncing, synced "synced"
Was this page helpful?