Issuance
Batch Issue Tokens
Mint tokens to multiple recipients in a single transaction
POST
/
stocks
/
api
/
tokenization
/
{tokenAddress}
/
batch-issue
curl -X POST "https://api.trusset.org/stocks/api/tokenization/0x1234.../batch-issue" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"recipients": [
"0xAbC123dEf456789012345678901234567890AbCd",
"0x9876543210fedcba9876543210fedcba98765432"
],
"amounts": ["500", "1500"],
"reason": "Series A distribution"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/tokenization/${tokenAddress}/batch-issue`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
recipients: [
'0xAbC123dEf456789012345678901234567890AbCd',
'0x9876543210fedcba9876543210fedcba98765432'
],
amounts: ['500', '1500'],
reason: 'Series A distribution'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xb4c5d6e7...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "ARRAY_MISMATCH",
"message": "recipients and amounts must match"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
Issues tokens to up to 200 recipients in one call. The
recipients and amounts arrays must have matching lengths. Each recipient address is validated individually.
Path Parameters
string
required
Address of the stock token contract.
Request Body
string[]
required
Array of Ethereum addresses to receive tokens. Maximum 200 entries.
string[]
required
Array of token amounts corresponding to each recipient. Each value must be a positive number string.
string
Optional reason or reference for the batch issuance.
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/tokenization/0x1234.../batch-issue" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"recipients": [
"0xAbC123dEf456789012345678901234567890AbCd",
"0x9876543210fedcba9876543210fedcba98765432"
],
"amounts": ["500", "1500"],
"reason": "Series A distribution"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/tokenization/${tokenAddress}/batch-issue`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
recipients: [
'0xAbC123dEf456789012345678901234567890AbCd',
'0x9876543210fedcba9876543210fedcba98765432'
],
amounts: ['500', '1500'],
reason: 'Series A distribution'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xb4c5d6e7...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "ARRAY_MISMATCH",
"message": "recipients and amounts must match"
},
"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/tokenization/0x1234.../batch-issue" \
-H "Content-Type: application/json" \
-H "X-API-Key: trusset_abc123xy_secret..." \
-d '{
"recipients": [
"0xAbC123dEf456789012345678901234567890AbCd",
"0x9876543210fedcba9876543210fedcba98765432"
],
"amounts": ["500", "1500"],
"reason": "Series A distribution"
}'
const response = await fetch(
`https://api.trusset.org/stocks/api/tokenization/${tokenAddress}/batch-issue`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'trusset_abc123xy_secret...'
},
body: JSON.stringify({
recipients: [
'0xAbC123dEf456789012345678901234567890AbCd',
'0x9876543210fedcba9876543210fedcba98765432'
],
amounts: ['500', '1500'],
reason: 'Series A distribution'
})
}
);
const { data } = await response.json();
{
"success": true,
"data": {
"success": true,
"txData": {
"to": "0x1234567890abcdef1234567890abcdef12345678",
"data": "0xb4c5d6e7...",
"value": "0"
}
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
{
"success": false,
"error": {
"code": "ARRAY_MISMATCH",
"message": "recipients and amounts must match"
},
"metadata": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2025-06-15T12:00:00.000Z",
"instanceId": "inst_abc123"
}
}
