Skip to main content
POST
/
stocks
/
api
/
tokenization
/
deploy
curl -X POST "https://api.trusset.org/stocks/api/tokenization/deploy" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "name": "Acme Corp Equity",
    "symbol": "ACME",
    "isin": "DE000A0D9PT0",
    "issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
    "metadataURI": "ipfs://QmXyz...",
    "useRelayer": true,
    "allowSubIssuers": false
  }'
{
  "success": true,
  "data": {
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "transactionHash": "0xabc123...",
    "name": "Acme Corp Equity",
    "symbol": "ACME",
    "isin": "DE000A0D9PT0"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Deploys a new stock token smart contract to the configured network. The token is registered to the authenticated instance and linked to the specified issuer address. Optionally delegates transaction signing to the Trusset relayer.

Request Body

name
string
required
Token name. Maximum 100 characters.
symbol
string
required
Token ticker symbol. Maximum 20 characters.
isin
string
required
ISIN identifier for the underlying security.
issuerAddress
string
required
Ethereum address of the token issuer. Must be a valid checksummed address.
metadataURI
string
URI pointing to off-chain token metadata (e.g., IPFS or HTTPS link).
Ethereum address of the legal operator, if separate from the issuer. Must be a valid address when provided.
useRelayer
boolean
default:"false"
When true, the transaction is signed and submitted by the Trusset relayer instead of requiring the caller to sign.
allowSubIssuers
boolean
default:"false"
When true, enables the sub-issuer role on this token, allowing delegated issuance.

Response Fields

success
boolean
Request status.
data
object
Deployment result including the new token contract address and transaction hash.
curl -X POST "https://api.trusset.org/stocks/api/tokenization/deploy" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "name": "Acme Corp Equity",
    "symbol": "ACME",
    "isin": "DE000A0D9PT0",
    "issuerAddress": "0xAbC123dEf456789012345678901234567890AbCd",
    "metadataURI": "ipfs://QmXyz...",
    "useRelayer": true,
    "allowSubIssuers": false
  }'
{
  "success": true,
  "data": {
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "transactionHash": "0xabc123...",
    "name": "Acme Corp Equity",
    "symbol": "ACME",
    "isin": "DE000A0D9PT0"
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}