Skip to main content
POST
/
stocks
/
api
/
manage
/
{tokenAddress}
/
sub-issuer
/
add
curl -X POST "https://api.trusset.org/stocks/api/manage/0x1234.../sub-issuer/add" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "account": "0x9876543210fedcba9876543210fedcba98765432",
    "useRelayer": true
  }'
{
  "success": true,
  "data": {
    "transactionHash": "0xdef456...",
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "account": "0x9876543210fedcba9876543210fedcba98765432",
    "role": "SUB_ISSUER",
    "action": "granted"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Grants the SUB_ISSUER role to the specified account on-chain. Sub-issuers can mint tokens on behalf of the primary issuer. The token must have been deployed with allowSubIssuers enabled.

Path Parameters

tokenAddress
string
required
Address of the stock token contract.

Request Body

account
string
required
Ethereum address to grant the sub-issuer role.
useRelayer
boolean
default:"false"
When true, the transaction is signed and submitted by the Trusset relayer.

Response Fields

success
boolean
Request status.
data
object
Transaction result.
curl -X POST "https://api.trusset.org/stocks/api/manage/0x1234.../sub-issuer/add" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "account": "0x9876543210fedcba9876543210fedcba98765432",
    "useRelayer": true
  }'
{
  "success": true,
  "data": {
    "transactionHash": "0xdef456...",
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "account": "0x9876543210fedcba9876543210fedcba98765432",
    "role": "SUB_ISSUER",
    "action": "granted"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}