ShufflingCreate
Creates a new shuffling on the Shamwari Network, requiring participants to deposit and shuffle their holdings.
Request
POST /nxt?requestType=shufflingCreate
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
holding | string | Holding ID | Yes |
holdingType | byte | Holding type (0=coin, 1=totem, 2=currency, 3=asset) | Yes |
amount | long | Amount per participant | Yes |
participantCount | byte | Number of participants (2-10) | Yes |
registrationPeriod | short | Registration period in blocks | Yes |
secretPhrase | string | Sender's secret passphrase | Yes |
Response
{
"transaction": "1234567890123456789",
"fullHash": "abc123def456...",
"shufflingFullHash": "def456abc123...",
"errorCode": 0,
"errorDescription": ""
}
Example
curl -X POST "http://localhost:22024/nxt?requestType=shufflingCreate" \
-d "holding=1234567890123456789" \
-d "holdingType=1" \
-d "amount=100000000" \
-d "participantCount=3" \
-d "registrationPeriod=1440" \
-d "secretPhrase=your_secret_passphrase"