Shuffling

Get Account Shufflings

Retrieves info about shufflings for a specific account.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAccountShufflings&chain=2&account=ARDOR-UZNP-6LBA-YQ38-3TEY8

Example response: 200

{
    "requestProcessingTime": 5,
    "shufflings": []
}

Get All Shufflings

Retrieves info about all shufflings.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAllShufflings&chain=2

Example response: 200

{
    "requestProcessingTime": 5,
    "shufflings": []
}

Get Assigned Shufflings

Retrieves info about a shufflings that are currently assigned to a specific account.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getAssignedShufflings&chain=2&account=ARDOR-V4WY-U928-GRN8-CKPL9

Example response: 200

{
    "requestProcessingTime": 1,
    "shufflings": []
}

Get Holding Shufflings

Retrieves info about shufflings for a specific holding and/or stage.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getHoldingShufflings&chain=2&holding=15344649963748848799&includeFinished=true

Example response: 200

{
    "requestProcessingTime": 0,
    "shufflings": []
}

Get Shufflers

Retrieves info about active shufflers on the current node.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getShufflers&adminPassword=IWontTellYou

Example response: 200

{
    "errorDescription": "Incorrect \"adminPassword\" (the specified password does not match nxt.adminPassword)",
    "errorCode": 4
}

Get Shuffling

Retrieves info about a shuffling.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getShuffling&chain=2&shuffling=3347171811359602131

Example response: 200

{
    "errorDescription": "\"shufflingFullHash\" not specified",
    "errorCode": 3
}

Get Shuffling Participants

Retrieves info about participants in a shuffling.

Method: GET

https://ardr.nownodes.io/nxt?requestType=getShufflingParticipants&chain=2&shuffling=16292433427943984172

Example response: 200

{
    "errorDescription": "\"shufflingFullHash\" not specified",
    "errorCode": 3
}

Shuffling Create

Cancels a shuffling.

Method: POST

https://ardr.nownodes.io/nxt?requestType=shufflingCreate

Example body (x-www-form-urlencoded)

requestType = shufflingCreate
secretPhrase = IWontTellYou
chain = 2
participantCount = 7
registrationPeriod = 9757
feeNQT = 100000000
deadline = 1440

Example response: 200

{
    "errorDescription": "Unknown account",
    "errorCode": 5
}

Shuffling Process

Manually process the shuffling for a specific participant. Note that the shuffling must be in processing stage and the secretPhrase must match the current shuffling assignee.

Method: POST

https://ardr.nownodes.io/nxt?requestType=shufflingProcess

Example body (x-www-form-urlencoded)

requestType = shufflingProcess
secretPhrase = IWontTellYou
chain = 2
feeNQT = 100000000
deadline = 1440

Example response: 200

{
    "errorDescription": "\"shufflingFullHash\" not specified",
    "errorCode": 3
}

Shuffling Register

Registers a new participant to an existing shuffling. The shuffling must be in stage registration.

Method: POST

https://ardr.nownodes.io/nxt?requestType=shufflingRegister

Example body (x-www-form-urlencoded)

requestType = shufflingProcess
secretPhrase = IWontTellYou
shufflingFullHash = 2d10f4e18f808aa8d0de06d5cddcd77828eb6e7548f62e48de83f58fdf0629d5
chain = 2
feeNQT = 100000000
deadline = 1440

Example response: 200

{
    "errorDescription": "Unknown account",
    "errorCode": 5
}

Shuffling Verify

Sends a verification that an account's recipient public key is found within a shuffling.

Method: POST

https://ardr.nownodes.io/nxt?requestType=shufflingVerify

Example body (x-www-form-urlencoded)

requestType = shufflingVerify
secretPhrase = IWontTellYou
shufflingFullHash = 2d10f4e18f808aa8d0de06d5cddcd77828eb6e7548f62e48de83f58fdf0629d5
shufflingStateHash = 90832470918374087102938470198234
chain = 2
feeNQT = 100000000
deadline = 1440

Example response: 200

{
    "errorDescription": "Unknown shuffling",
    "errorCode": 5
}

Start Shuffler

Starts a automated Shuffler. Once started, the Shuffler monitors the blockchain state for transactions relevant to the specified shuffle, and automatically submits the required transactions on behalf of the user, performing shuffle processing, verification, or cancellation as needed.

Method: POST

https://ardr.nownodes.io/nxt?requestType=startShuffler

Example body (x-www-form-urlencoded)

requestType = startShuffler
secretPhrase = IWontTellYou
shufflingFullHash = 2d10f4e18f808aa8d0de06d5cddcd77828eb6e7548f62e48de83f58fdf0629d5
recipientSecretPhrase = IWontTellYou
chain = 2
feeRateNQTPerFXT = 100000000

Example response: 200

{
    "errorDescription": "Incorrect \"recipientPublicKey\" Existing account cannot be used as shuffling recipient",
    "errorCode": 4
}

Stop Shuffler

Stops a previously started automated Shuffler.

Method: POST

https://ardr.nownodes.io/nxt?requestType=stopShuffler

Example body (x-www-form-urlencoded)

requestType = stopShuffler
secretPhrase = IWontTellYou
shufflingFullHash = 2d10f4e18f808aa8d0de06d5cddcd77828eb6e7548f62e48de83f58fdf0629d5

Example response: 200

{
    "requestProcessingTime": 1,
    "stoppedShuffler": false
}

Last updated