Adrese Göre Token Bulma
Bir dağıtım token'ını zincir üstü kontrat adresiyle bulur ve özet token bilgisini (ad, sembol, ondalık, güncel fiyat, ağ) döndürür.
İstek
GET /v2/distributions/tokens/addresses/{address}
Parametreler
| Ad | Tip | Yer | Açıklama |
|---|---|---|---|
address | string | path | Zorunlu. Token'ın zincir üstü kontrat adresi |
Başlıklar (Headers)
| Ad | Açıklama |
|---|---|
Authorization | Zorunlu. Kimlik doğrulama için Bearer token |
Örnek
curl --request GET \
--url '{{baseUrl}}/v2/distributions/tokens/addresses/0x073c0196e516a0e77b1c804d1825fb1bad23895d' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Yanıt
{
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d",
"name": "Istanbul Commercial Lease #1",
"symbol": "ICL",
"decimal": 18,
"image": "https://cdn.example.com/tokens/icl.png",
"price": {
"id": "6913307ec95e268b239b2d8b",
"amount": 100.0,
"decimal": 6,
"symbol": "USDT",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"network_id": 137
}
Yanıt Alanları
| Alan | Tip | Açıklama |
|---|---|---|
address | string | Zincir üstü kontrat adresi |
name | string | Token görünen adı |
symbol | string | Token sembolü |
decimal | integer | Token ondalık basamak sayısı |
image | string | Token görsel URL'si |
price | object | Güncel token fiyatı {id, amount, decimal, symbol, address} |
network_id | integer | Token'ın bulunduğu EVM zincir id'si |
Durum Kodları
| Durum Kodu | Açıklama |
|---|---|
| 200 | Başarılı |
| 400 | Hatalı İstek - Eksik veya geçersiz adres |
| 401 | Yetkisiz - Geçersiz veya eksik kimlik doğrulama token'ı |
| 404 | Bulunamadı - Verilen adres için token bulunamadı |
| 500 | Sunucu Hatası |