Skip to main content
GET
/
api
/
v1
/
market
/
assets
TypeScript SDK
import { KaleidoClient } from 'kaleido-sdk';

const client = new KaleidoClient({
  baseUrl: 'https://api.staging.kaleidoswap.com/api/v1'
});

const assets = await client.listAssets();
console.log(`Found ${assets.assets.length} assets`);
import asyncio
from kaleido_sdk import KaleidoClient

async def main():
async with KaleidoClient(
api_url="https://api.staging.kaleidoswap.com/api/v1"
) as client:
assets = await client.list_assets()
print(f"Found {len(assets.assets)} assets")

asyncio.run(main())
curl --request GET \
--url https://api.signet.kaleidoswap.com/api/v1/market/assets \
--header 'Authorization: Bearer <token>'
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.signet.kaleidoswap.com/api/v1/market/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://api.signet.kaleidoswap.com/api/v1/market/assets"

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

req.Header.Add("Authorization", "Bearer <token>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.signet.kaleidoswap.com/api/v1/market/assets")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.signet.kaleidoswap.com/api/v1/market/assets")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "assets": [
    {
      "asset_id": "rgb:2dkSTbr-jFhznbPmo-TQafzswCN-av4gTsJjX-ttx6CNou5-M98k8Zd",
      "ticker": "USDT",
      "name": "Tether",
      "precision": 0,
      "issued_supply": 777,
      "timestamp": 1691160565,
      "added_at": 1691161979,
      "balance": {
        "settled": 777,
        "future": 777,
        "spendable": 777,
        "offchain_outbound": 444,
        "offchain_inbound": 0
      },
      "details": "asset details",
      "media": {
        "file_path": "/path/to/media",
        "digest": "5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03",
        "mime": "text/plain"
      },
      "is_active": true
    }
  ],
  "network": "regtest",
  "timestamp": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

assets
ClientAsset · object[]
required
network
string
default:regtest
timestamp
integer | null