Skip to main content

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

NameTypeDescriptionRequired
holdingstringHolding IDYes
holdingTypebyteHolding type (0=coin, 1=totem, 2=currency, 3=asset)Yes
amountlongAmount per participantYes
participantCountbyteNumber of participants (2-10)Yes
registrationPeriodshortRegistration period in blocksYes
secretPhrasestringSender's secret passphraseYes

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"