Crypto
Chains Disponíveis
GET
/v1/crypto/chainsLista todas as redes blockchain suportadas, agrupadas por moeda. Endpoint público — não requer autenticação.
Rate limit: 60 requisições por minuto
Endpoint Público
Este endpoint não requer o header
api-secret. Pode ser chamado diretamente do frontend para popular seletores de chain.Query Parameters (Opcionais)
| Campo | Tipo | Descrição |
|---|---|---|
asset | string | Filtrar por um asset específico. Ex: USDT, BTC, ETH. Se omitido, retorna todas as chains. |
Campos da Resposta
| Campo | Tipo | Descrição |
|---|---|---|
label | string | Nome amigável da rede (ex: "Ethereum", "Bitcoin") |
value | string | Código interno usado nas requisições de depósito/withdraw (ex: "ERC20", "BTC") |
description | string | Descrição da rede blockchain |
Como usar este endpoint
Use o campo
value retornado aqui no campo chain das requisições de depósito e withdraw. Por exemplo, se value for "ERC20", use "chain": "ERC20".Erros Possíveis
400Asset informado não encontrado ou sem chains suportadas400"Serviço não habilitado"GET
https://api.connectpay.vc/v1/crypto/chainscURL — Todas as chains
curl -X GET "https://api.connectpay.vc/v1/crypto/chains" \
-H "Content-Type: application/json"cURL — Filtrar por asset
curl -X GET "https://api.connectpay.vc/v1/crypto/chains?asset=USDT" \
-H "Content-Type: application/json"Response 200 — Todas as chains
{
"hasError": false,
"data": {
"BTC": [
{ "label": "Bitcoin", "value": "BTC", "description": "Rede Bitcoin" }
],
"ETH": [
{ "label": "Ethereum", "value": "ERC20", "description": "Rede Ethereum (ERC20)" }
],
"USDT": [
{ "label": "Ethereum", "value": "ERC20", "description": "Rede Ethereum (ERC20)" },
{ "label": "Binance Smart Chain", "value": "BEP20", "description": "Rede Binance (BEP20)" },
{ "label": "Polygon", "value": "POLYGON", "description": "Rede Polygon" }
]
}
}