GET
/v1/currencies
List coins
Every coin buyers can pay with right now: icon, networks and an indicative USD price for native coins. No signature required.
Response 200
{
"currencies": [
{
"code": "USDT",
"name": "Tether USD",
"kind": "stable",
"color": "#26A17B",
"icon": "https://zyvopay.com/coins/usdt.svg",
"networks": [
"TRC20",
"TON",
"BEP20",
"POLYGON",
"ARBITRUM",
"SOLANA"
],
"usd_price": "1"
},
{
"code": "BNB",
"name": "BNB",
"kind": "native",
"color": "#F0B90B",
"icon": "https://zyvopay.com/coins/bnb.svg",
"networks": [
"BEP20"
],
"usd_price": "722.77"
}
]
}
curl https://api.zyvopay.com/v1/currencies
<?php
// composer require guzzlehttp/guzzle
$client = new \GuzzleHttp\Client(['base_uri' => 'https://api.zyvopay.com/v1/']);
$body = '';
$response = $client->request('GET', 'currencies', [
'headers' => [
'X-Zyvo-Key' => getenv('ZYVO_KEY'),
'X-Zyvo-Signature' => hash_hmac('sha256', $body, getenv('ZYVO_SECRET')),
'Content-Type' => 'application/json',
],
]);
$data = json_decode((string) $response->getBody(), true);import crypto from 'node:crypto';
const body = '';
const signature = crypto.createHmac('sha256', process.env.ZYVO_SECRET).update(body).digest('hex');
const res = await fetch('https://api.zyvopay.com/v1/currencies', {
method: 'GET',
headers: {
'X-Zyvo-Key': process.env.ZYVO_KEY,
'X-Zyvo-Signature': signature,
'Content-Type': 'application/json',
},
});
console.log(await res.json());import hmac, hashlib, json, os, requests
body = ''
signature = hmac.new(os.environ['ZYVO_SECRET'].encode(), body.encode(), hashlib.sha256).hexdigest()
r = requests.request('GET', 'https://api.zyvopay.com/v1/currencies', data=body, headers={
'X-Zyvo-Key': os.environ['ZYVO_KEY'],
'X-Zyvo-Signature': signature,
'Content-Type': 'application/json',
})
print(r.json())package main
import (
"bytes"
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(``)
mac := hmac.New(sha256.New, []byte(os.Getenv("ZYVO_SECRET")))
mac.Write(body)
req, _ := http.NewRequest("GET", "https://api.zyvopay.com/v1/currencies", bytes.NewReader(body))
req.Header.Set("X-Zyvo-Key", os.Getenv("ZYVO_KEY"))
req.Header.Set("X-Zyvo-Signature", hex.EncodeToString(mac.Sum(nil)))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}