Queries
Get Token Details
Retrieve detailed information for a specific stock token
GET
/
stocks
/
api
/
fetch
/
token
/
{tokenAddress}
curl "https://api.trusset.org/stocks/api/fetch/token/0x1234..." \
-H "X-API-Key: trusset_bc123xy_secret..."
const response = await fetch(
`https://api.trusset.org/stocks/api/fetch/token/${tokenAddress}`,
{
headers: { 'X-API-Key': 'trusset_bc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"totalSupply": "100000",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"paused": false
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "TOKEN_NOT_FOUND",
"message": "Token not found"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
Returns full details for a single stock token contract, including on-chain state such as total supply, paused status, and role assignments.
Path Parameters
Address of the stock token contract.
Response Fields
Request status.
Token details including contract metadata and on-chain state.
curl "https://api.trusset.org/stocks/api/fetch/token/0x1234..." \
-H "X-API-Key: trusset_bc123xy_secret..."
const response = await fetch(
`https://api.trusset.org/stocks/api/fetch/token/${tokenAddress}`,
{
headers: { 'X-API-Key': 'trusset_bc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"totalSupply": "100000",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"paused": false
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "TOKEN_NOT_FOUND",
"message": "Token not found"
},
"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/token/0x1234..." \
-H "X-API-Key: trusset_bc123xy_secret..."
const response = await fetch(
`https://api.trusset.org/stocks/api/fetch/token/${tokenAddress}`,
{
headers: { 'X-API-Key': 'trusset_bc123xy_secret...' }
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
"name": "Acme Corp Equity",
"symbol": "ACME",
"isin": "DE000A0D9PT0",
"totalSupply": "100000",
"issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
"paused": false
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "TOKEN_NOT_FOUND",
"message": "Token not found"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
