Skip to main content
PATCH
/
v1
/
wallet
/
transactions
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"
}
50 credits per request
In Query field “connectionId”: credits are multiplied by the number of values.
If the value of “connectionId” in Query is “all”, multiplier is 500 credits.
In Query field “blockchain”: credits are multiplied by the number of values.
If the value of “blockchain” in Query is “all”, multiplier is 500 credits.
In Body field “wallets”: credits are multiplied by the number of values.
If the value of “wallets” in Body is “all”, multiplier is 500 credits.
In Body field “wallets”: credits are multiplied by the number of values.
If the value of “wallets” in Body is “all”, multiplier is 500 credits.
Multipliers can be applied multiple times.

Provide query parameters: address plus either connectionId or blockchain.
Example: { address: “0x123…”, connectionId: “ethereum” }
Provide a body with
{ wallets: [{ address: “0x123…”, connectionId: “ethereum” }] }
  • Single-wallet form: query params address + connectionId.
  • Multi-wallet form: JSON body with wallets array (each item \{ address, connectionId \}).
  • At least one wallet must be provided.

Authorizations

X-API-KEY
string
header
required

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

address
string

Wallet address for single wallet sync

connectionId
string

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.

Example:

"base-wallet"

blockchain
string

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.

Example:

"base"

Body

application/json
wallets
object[]

Array of wallets to sync transactions for

Example:
[
{
"address": "0x123456789abcdef",
"connectionId": "ethereum"
},
{
"address": "0x987654321fedcba",
"blockchain": "binance_smart"
}
]

Response

Start syncing transactions

status
enum<string>
required

The current synchronization status of the portfolio

Available options:
syncing,
synced
Example:

"synced"