Management
Remove Sub-Issuer
Revoke the sub-issuer role from an address on a stock token
POST
/
stocks
/
api
/
manage
/
{tokenAddress}
/
sub-issuer
/
remove
curl -X POST "https://api.trusset.org/stocks/api/manage/0x1234.../sub-issuer/remove" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"account": "0x9876543210fedcba9876543210fedcba98765432"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/manage/${tokenAddress}/sub-issuer/remove`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
account: '0x9876543210fedcba9876543210fedcba98765432'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xc5d6e7f8...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
Revokes the
SUB_ISSUER role from the specified account on-chain.
Path Parameters
string
required
Address of the stock token contract.
Request Body
string
required
Ethereum address to revoke the sub-issuer role from.
Response Fields
object
Nothing is submitted on your behalf. Sign
txData with a wallet holding the required role on the token and broadcast it yourself.curl -X POST "https://api.trusset.org/stocks/api/manage/0x1234.../sub-issuer/remove" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"account": "0x9876543210fedcba9876543210fedcba98765432"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/manage/${tokenAddress}/sub-issuer/remove`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
account: '0x9876543210fedcba9876543210fedcba98765432'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xc5d6e7f8...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
⌘I
curl -X POST "https://api.trusset.org/stocks/api/manage/0x1234.../sub-issuer/remove" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"account": "0x9876543210fedcba9876543210fedcba98765432"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/manage/${tokenAddress}/sub-issuer/remove`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
account: '0x9876543210fedcba9876543210fedcba98765432'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xc5d6e7f8...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
