Skip to main content
POST
/
stocks
/
api
/
tokenization
/
{tokenAddress}
/
stock-split
curl -X POST "https://api.trusset.org/stocks/api/tokenization/0x1234.../stock-split" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "numerator": 2,
    "denominator": 1,
    "useRelayer": true
  }'
{
  "success": true,
  "data": {
    "transactionHash": "0xdef456...",
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "numerator": 2,
    "denominator": 1
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}
Executes a stock split by adjusting all holder balances according to the provided ratio. A numerator of 2 and denominator of 1 is a 2-for-1 forward split. A numerator of 1 and denominator of 2 is a 1-for-2 reverse split. The numerator and denominator must both be positive integers and cannot be equal.

Path Parameters

tokenAddress
string
required
Address of the stock token contract.

Request Body

numerator
integer
required
Split ratio numerator. Must be a positive integer.
denominator
integer
required
Split ratio denominator. Must be a positive integer and different from numerator.
useRelayer
boolean
default:"false"
When true, the transaction is signed and submitted by the Trusset relayer.

Response Fields

success
boolean
Request status.
data
object
Split result including the transaction hash and applied ratio.
curl -X POST "https://api.trusset.org/stocks/api/tokenization/0x1234.../stock-split" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: trusset_abc123xy_secret..." \
  -d '{
    "numerator": 2,
    "denominator": 1,
    "useRelayer": true
  }'
{
  "success": true,
  "data": {
    "transactionHash": "0xdef456...",
    "tokenAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "numerator": 2,
    "denominator": 1
  },
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-06-15T12:00:00.000Z",
    "instanceId": "inst_abc123"
  }
}