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
Token name. Maximum 100 characters.
Token ticker symbol. Maximum 20 characters.
ISIN identifier for the underlying security.
Ethereum address of the token issuer. Must be a valid checksummed address.
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.
When true, the transaction is signed and submitted by the Trusset relayer instead of requiring the caller to sign.
When true, enables the sub-issuer role on this token, allowing delegated issuance.
Response Fields
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
}'
Response
Error - Missing Fields
{
"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"
}
}