Queries
List Tokens
Retrieve all stock tokens registered to the authenticated instance
GET
/
stocks
/
api
/
fetch
/
tokens
curl "https://api.trusset.org/stocks/api/fetch/tokens" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/stocks/api/fetch/tokens',
{
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": [
{
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"instanceId": "inst_abc123"
}
],
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
Returns all stock token contracts associated with the authenticated instance. Results include on-chain metadata and deployment details.
Response Fields
boolean
Request status.
object[]
Array of token records for the instance.
curl "https://api.trusset.org/stocks/api/fetch/tokens" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/stocks/api/fetch/tokens',
{
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": [
{
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"instanceId": "inst_abc123"
}
],
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
⌘I
curl "https://api.trusset.org/stocks/api/fetch/tokens" \
-H "X-API-Key: trusset_abc123xy_secret..."
const response = await fetch(
'https://api.trusset.org/stocks/api/fetch/tokens',
{
headers: { 'X-API-Key': 'trusset_abc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": [
{
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"instanceId": "inst_abc123"
}
],
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
