GET
/
api
/
v1
/
wallets
/
by-coins
Group wallets by coin
curl --request GET \
  --url https://secureapi.dyrectpay.com/api/v1/wallets/by-coins \
  --header 'x-api-key: <api-key>' \
  --header 'x-signature: <api-key>' \
  --header 'x-timestamp: <api-key>'
import requests

url = "https://secureapi.dyrectpay.com/api/v1/wallets/by-coins"

headers = {
"x-api-key": "<api-key>",
"x-timestamp": "<api-key>",
"x-signature": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {
'x-api-key': '<api-key>',
'x-timestamp': '<api-key>',
'x-signature': '<api-key>'
}
};

fetch('https://secureapi.dyrectpay.com/api/v1/wallets/by-coins', 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://secureapi.dyrectpay.com/api/v1/wallets/by-coins",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-signature: <api-key>",
"x-timestamp: <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"
"net/http"
"io"
)

func main() {

url := "https://secureapi.dyrectpay.com/api/v1/wallets/by-coins"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-timestamp", "<api-key>")
req.Header.Add("x-signature", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://secureapi.dyrectpay.com/api/v1/wallets/by-coins")
.header("x-api-key", "<api-key>")
.header("x-timestamp", "<api-key>")
.header("x-signature", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://secureapi.dyrectpay.com/api/v1/wallets/by-coins")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-timestamp"] = '<api-key>'
request["x-signature"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "message": "Success",
  "data": [
    {
      "coin": "usdt",
      "balanceInUSD": 25.5,
      "totalBalance": 25.5,
      "balanceInNGN": 34450,
      "balance": "25.5",
      "name": "Tether",
      "symbol": "USDT",
      "type": "crypto",
      "walletAddress": "0xexampleaddress",
      "subscribedChains": [
        {
          "reference": "binance",
          "name": "BSC",
          "type": "evm",
          "tokenType": "BEP20"
        }
      ]
    },
    {
      "coin": "naira",
      "balanceInUSD": 7.4,
      "totalBalance": 10000,
      "balanceInNGN": 10000,
      "balance": 10000,
      "name": "Naira",
      "symbol": "NGN",
      "type": "fiat",
      "walletAddress": "",
      "subscribedChains": [],
      "accountNumber": "0000000000"
    }
  ]
}
{
"status": "error",
"message": "Invalid request",
"data": null
}
{
"status": "error",
"message": "Invalid request",
"data": null
}

Authorizations

x-api-key
string
header
required

API key issued to your integration.

x-timestamp
string
header
required

Request timestamp used for signature verification.

x-signature
string
header
required

Request signature generated by your backend.

Response

Successful response.

status
string
Example:

"success"

message
string
Example:

"success"

data
any | null

Endpoint-specific response payload.